mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-24 04:19:48 +01:00
update:关闭deepseek的思考模式
This commit is contained in:
parent
a269953787
commit
88eed86dc2
2 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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"}},
|
||||
|
|
|
|||
Loading…
Reference in a new issue