[GH-ISSUE #7177] Qwen 2.5 tool calls change function names after response #4557

Closed
opened 2026-04-12 15:29:42 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @LuckLittleBoy on GitHub (Oct 12, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/7177

What is the issue?

request tool function name is cInBMXzQGq58, but response tool function name changed to cInBMXzQz58

request:

curl http://localhost:11434/v1/chat/completions -d '{
"model": "qwen2.5",
"temperature": 0.01,
"max_tokens": 2000,
"stream": false,
"messages": [
{
"role": "user",
"content": "系统状态"
}
],
"tools": [
{
"type": "function",
"function": {
"name": "cInBMXzQGq58",
"description": "系统状态方面",
"parameters": {
"type": "object",
"properties": {},
"required": []
}
}
}
],
"tool_choice": "auto"
}'

response:

{
"id": "chatcmpl-724",
"object": "chat.completion",
"created": 1728697253,
"model": "qwen2.5",
"system_fingerprint": "fp_ollama",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "",
"tool_calls": [
{
"id": "call_l565rajv",
"type": "function",
"function": {
"name": "cInBMXzQz58",
"arguments": "{}"
}
}
]
},
"finish_reason": "tool_calls"
}
],
"usage": {
"prompt_tokens": 151,
"completion_tokens": 23,
"total_tokens": 174
}
}

OS

Docker

GPU

No response

CPU

Intel

Ollama version

0.3.10

Originally created by @LuckLittleBoy on GitHub (Oct 12, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/7177 ### What is the issue? request tool function name is **cInBMXzQGq58**, but response tool function name changed to **cInBMXzQz58** **request:** curl http://localhost:11434/v1/chat/completions -d '{ "model": "qwen2.5", "temperature": 0.01, "max_tokens": 2000, "stream": false, "messages": [ { "role": "user", "content": "系统状态" } ], "tools": [ { "type": "function", "function": { "name": "cInBMXzQGq58", "description": "系统状态方面", "parameters": { "type": "object", "properties": {}, "required": [] } } } ], "tool_choice": "auto" }' **response:** { "id": "chatcmpl-724", "object": "chat.completion", "created": 1728697253, "model": "qwen2.5", "system_fingerprint": "fp_ollama", "choices": [ { "index": 0, "message": { "role": "assistant", "content": "", "tool_calls": [ { "id": "call_l565rajv", "type": "function", "function": { "name": "cInBMXzQz58", "arguments": "{}" } } ] }, "finish_reason": "tool_calls" } ], "usage": { "prompt_tokens": 151, "completion_tokens": 23, "total_tokens": 174 } } ### OS Docker ### GPU _No response_ ### CPU Intel ### Ollama version 0.3.10
GiteaMirror added the bug label 2026-04-12 15:29:42 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#4557