Hi team, I'm using traditional function call method, but it seems doesn't work for me . No function/

Hi team, I'm using traditional function call method, but it seems doesn't work for me . No function/tool could be picked.
Sample :
Request payload:
{"model":"@hf/nousresearch/hermes-2-pro-mistral-7b","messages":[{"role":"user","content":"what is the weather in london"}],"stream":false,"tools":[{"name":"getWeather","description":"Return the weather for a latitude and longitude","parameters":{"type":"object","properties":{"latitude":{"type":"string","description":"The latitude for the given location"},"longitude":{"type":"string","description":"The longitude for the given location"}},"required":["latitude","longitude"]}}]}
Response payload:
{"id":"id-1750398103502","object":"chat.completion","created":1750398103,"model":"@hf/nousresearch/hermes-2-pro-mistral-7b","choices":[{"index":0,"message":{"role":"assistant","content":null},"logprobs":null,"finish_reason":"stop"}],"usage":{"prompt_tokens":0,"completion_tokens":0,"total_tokens":0}}
Was this page helpful?