You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
curl "http://10.42.210.126:8000/v1/chat/completions" -H "Content-Type: application/json" -d '{"temperature": 0, "max_tokens": 100, "model": "llama-4-scout-17b-16e-instruct", "tools": [{"type": "function", "function": {"name": "query_weather", "description": "Get weather of an city, the user should supply a city first", "parameters": {"type": "object", "properties": {"city": {"type": "string", "description": "The city, e.g. Beijing"}}, "required": ["city"]}}}], "messages": [{"role": "user", "content": "Hows the weather like in Qingdao today"}]}'
I get response:
{
"id": "00c0ad50b82241fa912cec42f59458c9",
"object": "chat.completion",
"created": 1755389060,
"model": "llama-4-scout-17b-16e-instruct",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "I'm not able to provide real-time weather updates as my last update was in April 2023, and I don't have access to current internet data. However, I can guide you on how to find the most accurate and up-to-date weather information for Qingdao.\n\n1. **Check Online Weather Services**: Websites like AccuWeather, Weather.com, or the official website of the China Meteorological Administration provide current weather conditions and forecasts for locations all over the world, including Qingdao.\n\n2. **Use",
"reasoning_content": null,
"tool_calls": null
},
"logprobs": null,
"finish_reason": "length",
"matched_stop": null
}
],
"usage": {
"prompt_tokens": 19,
"total_tokens": 119,
"completion_tokens": 100,
"prompt_tokens_details": null,
"reasoning_tokens": 0
},
"metadata": {
"weight_version": "default"
}
}
for gpt-oss the response seems to be ok:
{
"id": "b0fc9af33bdc4b3393393ca316e51406",
"object": "chat.completion",
"created": 1755388966,
"model": "gpt-oss-120b",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "<|start|>assistant<|channel|>commentary to=functions.query_weather <|constrain|>json<|message|>{\n \"city\": \"Qingdao\"\n}",
"reasoning_content": "The user asks: \"Hows the weather like in Qingdao today\". We need to get weather. Use function query_weather with city \"Qingdao\".",
"tool_calls": []
},
"logprobs": null,
"finish_reason": "tool_calls",
"matched_stop": null
}
],
"usage": {
"prompt_tokens": 144,
"total_tokens": 206,
"completion_tokens": 62,
"prompt_tokens_details": null,
"reasoning_tokens": 0
},
"metadata": {
"weight_version": "default"
}
}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
what is proper setup for llama4 Scout to enabel tools? I tried:
esp.
'--chat-template', 'llama-4', '--tool-call-parser', 'pythonic'but if I request sample call for a tool:
I get response:
for gpt-oss the response seems to be ok:
Beta Was this translation helpful? Give feedback.
All reactions