From 88eed86dc2dfb5c4960ffa62ab1edcde3f1b9f68 Mon Sep 17 00:00:00 2001 From: 3030332422 <3030332422@qq.com> Date: Thu, 6 Aug 2026 13:07:04 +0800 Subject: [PATCH] =?UTF-8?q?update=EF=BC=9A=E5=85=B3=E9=97=ADdeepseek?= =?UTF-8?q?=E7=9A=84=E6=80=9D=E8=80=83=E6=A8=A1=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/llm/service/impl/OpenAIStyleLLMServiceImpl.java | 1 + main/xiaozhi-server/core/providers/llm/openai/openai.py | 1 + 2 files changed, 2 insertions(+) diff --git a/main/manager-api/src/main/java/xiaozhi/modules/llm/service/impl/OpenAIStyleLLMServiceImpl.java b/main/manager-api/src/main/java/xiaozhi/modules/llm/service/impl/OpenAIStyleLLMServiceImpl.java index 04f9bf0ce..b89ae982f 100644 --- a/main/manager-api/src/main/java/xiaozhi/modules/llm/service/impl/OpenAIStyleLLMServiceImpl.java +++ b/main/manager-api/src/main/java/xiaozhi/modules/llm/service/impl/OpenAIStyleLLMServiceImpl.java @@ -36,6 +36,7 @@ public class OpenAIStyleLLMServiceImpl implements LLMService { static { THINKING_DISABLED_DOMAINS.put("aliyuncs.com", Map.of("enable_thinking", false)); Map thinkingDisabled = Map.of("thinking", Map.of("type", "disabled")); + THINKING_DISABLED_DOMAINS.put("deepseek.com", thinkingDisabled); THINKING_DISABLED_DOMAINS.put("bigmodel.cn", thinkingDisabled); THINKING_DISABLED_DOMAINS.put("moonshot.cn", thinkingDisabled); THINKING_DISABLED_DOMAINS.put("volces.com", thinkingDisabled); diff --git a/main/xiaozhi-server/core/providers/llm/openai/openai.py b/main/xiaozhi-server/core/providers/llm/openai/openai.py index ed0b5e978..e67c8333f 100644 --- a/main/xiaozhi-server/core/providers/llm/openai/openai.py +++ b/main/xiaozhi-server/core/providers/llm/openai/openai.py @@ -12,6 +12,7 @@ logger = setup_logging() # 需要禁用思考模式的平台域名及其对应参数(默认关闭思考模式) THINKING_DISABLED_DOMAINS = { "aliyuncs.com": {"enable_thinking": False}, + "deepseek.com": {"thinking": {"type": "disabled"}}, "bigmodel.cn": {"thinking": {"type": "disabled"}}, "moonshot.cn": {"thinking": {"type": "disabled"}}, "volces.com": {"thinking": {"type": "disabled"}},