mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-25 04:29:51 +01:00
fix: 使用deepseek r1-0528模型时,tools_call为空list,tools_call[0]报错
This commit is contained in:
parent
5a01bfcdbf
commit
f8de052d54
1 changed files with 1 additions and 1 deletions
|
|
@ -651,7 +651,7 @@ class ConnectionHandler:
|
||||||
# print("content_arguments", content_arguments)
|
# print("content_arguments", content_arguments)
|
||||||
tool_call_flag = True
|
tool_call_flag = True
|
||||||
|
|
||||||
if tools_call is not None:
|
if tools_call:
|
||||||
tool_call_flag = True
|
tool_call_flag = True
|
||||||
if tools_call[0].id is not None:
|
if tools_call[0].id is not None:
|
||||||
function_id = tools_call[0].id
|
function_id = tools_call[0].id
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue