From 09dee652397b58942d48cfbc5fed14496853b30f Mon Sep 17 00:00:00 2001 From: 3030332422 <3030332422@qq.com> Date: Thu, 6 Nov 2025 16:42:28 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BF=AE=E5=A4=8D=E9=83=A8=E5=88=86LLM?= =?UTF-8?q?=E5=9C=A8=E5=B7=A5=E5=85=B7=E8=B0=83=E7=94=A8=E6=97=B6=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E8=A2=AB=E7=A9=BA=E5=AD=97=E7=AC=A6=E4=B8=B2=E8=A6=86?= =?UTF-8?q?=E7=9B=96=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main/xiaozhi-server/core/connection.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main/xiaozhi-server/core/connection.py b/main/xiaozhi-server/core/connection.py index 92043e9b..5c7baeae 100644 --- a/main/xiaozhi-server/core/connection.py +++ b/main/xiaozhi-server/core/connection.py @@ -798,9 +798,9 @@ class ConnectionHandler: if tools_call is not None and len(tools_call) > 0: tool_call_flag = True - if tools_call[0].id is not None: + if tools_call[0].id is not None and tools_call[0].id != "": function_id = tools_call[0].id - if tools_call[0].function.name is not None: + if tools_call[0].function.name is not None and tools_call[0].function.name != "": function_name = tools_call[0].function.name if tools_call[0].function.arguments is not None: function_arguments += tools_call[0].function.arguments