mirror of
https://github.com/ollama/ollama.git
synced 2026-04-30 07:57:51 -05:00
docs: fix tool name mismatch and trailing commas in api.md example (#13559)
The tool calling example used "get_temperature" for tool_calls but defined the tool as "get_weather". Also removed trailing commas that made the JSON invalid. Fixes #13031
This commit is contained in:
@@ -895,11 +895,11 @@ curl http://localhost:11434/api/chat -d '{
|
|||||||
"tool_calls": [
|
"tool_calls": [
|
||||||
{
|
{
|
||||||
"function": {
|
"function": {
|
||||||
"name": "get_temperature",
|
"name": "get_weather",
|
||||||
"arguments": {
|
"arguments": {
|
||||||
"city": "Toronto"
|
"city": "Toronto"
|
||||||
}
|
}
|
||||||
},
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@@ -907,7 +907,7 @@ curl http://localhost:11434/api/chat -d '{
|
|||||||
{
|
{
|
||||||
"role": "tool",
|
"role": "tool",
|
||||||
"content": "11 degrees celsius",
|
"content": "11 degrees celsius",
|
||||||
"tool_name": "get_temperature",
|
"tool_name": "get_weather"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"stream": false,
|
"stream": false,
|
||||||
|
|||||||
Reference in New Issue
Block a user