Skip to content

Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.

docs: fix tool name mismatch and trailing commas in api.md example (#13559)

Nhan Nguyene1bdc23dd27c
diff --git a/docs/api.md b/docs/api.md
index 03f6dbea1..7c32c9597 100644
--- a/docs/api.md
+++ b/docs/api.md
@@ -895,11 +895,11 @@ curl http://localhost:11434/api/chat -d '{
"tool_calls": [
{
"function": {
- "name": "get_temperature",
+ "name": "get_weather",
"arguments": {
"city": "Toronto"
}
- },
+ }
}
]
},
@@ -907,7 +907,7 @@ curl http://localhost:11434/api/chat -d '{
{
"role": "tool",
"content": "11 degrees celsius",
- "tool_name": "get_temperature",
+ "tool_name": "get_weather"
}
],
"stream": false,