update:关闭deepseek的思考模式

This commit is contained in:
3030332422 2026-08-06 13:07:04 +08:00
parent a269953787
commit 88eed86dc2
2 changed files with 2 additions and 0 deletions

View file

@ -36,6 +36,7 @@ public class OpenAIStyleLLMServiceImpl implements LLMService {
static {
THINKING_DISABLED_DOMAINS.put("aliyuncs.com", Map.of("enable_thinking", false));
Map<String, Object> 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);

View file

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