Merge pull request #3313 from xinnan-tech/fix-deepseek-model

deepseek更改模型为v4-flash并且关闭思考模式
This commit is contained in:
hrz authored and GitHub committed 2026-08-06 18:10:01 +08:00
commit 7475ea2b2d
5 files changed
+14 -1

No files matched your search

@@ -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);
@@ -0,0 +1,4 @@
UPDATE `ai_model_config`
SET `config_json` = JSON_SET(`config_json`, '$.model_name', 'deepseek-v4-flash')
WHERE `id` = 'LLM_DeepSeekLLM'
AND JSON_EXTRACT(`config_json`, '$.model_name') = 'deepseek-chat';
@@ -718,3 +718,10 @@ databaseChangeLog:
- sqlFile:
encoding: utf8
path: classpath:db/changelog/202607290930.sql
- changeSet:
id: 202608061000
author: cgd
changes:
- sqlFile:
encoding: utf8
path: classpath:db/changelog/202608061030.sql
+1 -1
View File
@@ -649,7 +649,7 @@ LLM:
# 定义LLM API类型
type: openai
# 可在这里找到你的api key https://platform.deepseek.com/
model_name: deepseek-chat
model_name: deepseek-v4-flash
url: https://api.deepseek.com
api_key: 你的deepseek web key
ChatGLMLLM:
@@ -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"}},