mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-24 04:19:48 +01:00
fix: 修复qwen模型返回toolcall的arguments为None时导致后续请求400
This commit is contained in:
parent
9c2084b62e
commit
c8a2c9bbd4
1 changed files with 1 additions and 1 deletions
|
|
@ -859,7 +859,7 @@ class ConnectionHandler:
|
|||
{
|
||||
"id": function_id,
|
||||
"function": {
|
||||
"arguments": function_arguments,
|
||||
"arguments": '{}' if function_arguments == '' else function_arguments,
|
||||
"name": function_name,
|
||||
},
|
||||
"type": "function",
|
||||
|
|
|
|||
Loading…
Reference in a new issue