Update connection.py

This commit is contained in:
hrz
2025-06-05 17:07:29 +08:00
committed by GitHub
parent 77743ef8ba
commit bc44ea8757
+1 -1
View File
@@ -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