Replies: 1 comment
|
tool call的自动解析是靠识别生成内容中的"<tool_call>"和"</tool_call>"两个special token。https://qwen.readthedocs.io/zh-cn/latest/framework/function_call.html#qwen2-5-function-calling-templates 强制输出JSON,那就生成不了"<tool_call>"和"</tool_call>"了,自然也没法自动解析了。 都强制输出JSON了,直接JSON parse content好了。 |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
ollama+qwen2.5:7b-instruct
1.请求参数中不带format,会返回tool_calls
2.请求参数中带format,不会返回tool_calls
All reactions