mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-24 04:19:48 +01:00
Update connection.py
This commit is contained in:
parent
77743ef8ba
commit
bc44ea8757
1 changed files with 1 additions and 1 deletions
|
|
@ -651,7 +651,7 @@ class ConnectionHandler:
|
|||
# print("content_arguments", content_arguments)
|
||||
tool_call_flag = True
|
||||
|
||||
if tools_call:
|
||||
if tools_call is not None and len(tools_call) > 0:
|
||||
tool_call_flag = True
|
||||
if tools_call[0].id is not None:
|
||||
function_id = tools_call[0].id
|
||||
|
|
|
|||
Loading…
Reference in a new issue