From 48a2bd5a5a58a8f239a82bf7f953039e38958509 Mon Sep 17 00:00:00 2001 From: DaGou12138 <991623169@qq.com> Date: Wed, 20 May 2026 14:52:21 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E4=BF=AE=E5=A4=8Ddeepseek=E6=A8=A1?= =?UTF-8?q?=E5=9E=8B=E4=B8=8B=E5=B7=A5=E5=85=B7=E5=90=8D=E9=87=8D=E5=A4=8D?= =?UTF-8?q?=E5=AF=BC=E8=87=B4=E9=94=99=E8=AF=AF=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 | 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 2d933811..2ae64316 100644 --- a/main/xiaozhi-server/core/connection.py +++ b/main/xiaozhi-server/core/connection.py @@ -952,7 +952,7 @@ class ConnectionHandler: and hasattr(self, "func_handler") and not force_final_answer ): - functions = self.func_handler.get_functions() + functions = list(self.func_handler.get_functions()) # 仅在第一层调用时注入 direct_answer 虚拟工具 # 递归调用(depth>0)不注入,避免模型在生成文本回复时再次调 direct_answer 导致循环 if functions is not None and depth == 0: