mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-07-29 18:23:59 +08:00
Merge pull request #1958 from pursue-wind/fix_qwen_functioncall_err
fix: 修复qwen模型返回toolcall的arguments为None时导致后续请求400
This commit is contained in:
@@ -859,7 +859,7 @@ class ConnectionHandler:
|
|||||||
{
|
{
|
||||||
"id": function_id,
|
"id": function_id,
|
||||||
"function": {
|
"function": {
|
||||||
"arguments": function_arguments,
|
"arguments": "{}" if function_arguments == "" else function_arguments,
|
||||||
"name": function_name,
|
"name": function_name,
|
||||||
},
|
},
|
||||||
"type": "function",
|
"type": "function",
|
||||||
|
|||||||
Reference in New Issue
Block a user