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"}},