From f8de052d541858568a08fd34f808c06d1c55975f Mon Sep 17 00:00:00 2001 From: chan Date: Thu, 5 Jun 2025 16:33:47 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BD=BF=E7=94=A8deepseek=20r1-0528?= =?UTF-8?q?=E6=A8=A1=E5=9E=8B=E6=97=B6=EF=BC=8Ctools=5Fcall=E4=B8=BA?= =?UTF-8?q?=E7=A9=BAlist=EF=BC=8Ctools=5Fcall[0]=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main/xiaozhi-server/core/connection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/xiaozhi-server/core/connection.py b/main/xiaozhi-server/core/connection.py index aa1aaf42..bf9b9c1f 100644 --- a/main/xiaozhi-server/core/connection.py +++ b/main/xiaozhi-server/core/connection.py @@ -651,7 +651,7 @@ class ConnectionHandler: # print("content_arguments", content_arguments) tool_call_flag = True - if tools_call is not None: + if tools_call: tool_call_flag = True if tools_call[0].id is not None: function_id = tools_call[0].id