diff --git a/src-tauri/resources/codex_models/model-catalog.json b/src-tauri/resources/codex_models/model-catalog.json index fc3602a..516d087 100644 --- a/src-tauri/resources/codex_models/model-catalog.json +++ b/src-tauri/resources/codex_models/model-catalog.json @@ -923,12 +923,16 @@ "description": "DeepSeek V4 Flash with a 1M context window, up to 384K output, thinking mode, and tool calls.", "default_reasoning_level": "high", "supported_reasoning_levels": [ + { + "effort": "low", + "description": "Fast responses with lighter reasoning" + }, { "effort": "high", "description": "DeepSeek thinking mode" }, { - "effort": "xhigh", + "effort": "max", "description": "Maximum reasoning for complex agent tasks" } ], @@ -985,12 +989,16 @@ "description": "DeepSeek V4 Pro with a 1M context window, up to 384K output, thinking mode, and tool calls.", "default_reasoning_level": "high", "supported_reasoning_levels": [ + { + "effort": "low", + "description": "Fast responses with lighter reasoning" + }, { "effort": "high", "description": "DeepSeek thinking mode" }, { - "effort": "xhigh", + "effort": "max", "description": "Maximum reasoning for complex agent tasks" } ], diff --git a/src-tauri/src/codex_catalog.rs b/src-tauri/src/codex_catalog.rs index 3a201c4..8604c45 100644 --- a/src-tauri/src/codex_catalog.rs +++ b/src-tauri/src/codex_catalog.rs @@ -817,7 +817,7 @@ mod tests { assert_eq!(model["context_window"], 1_000_000); assert_eq!(model["max_context_window"], 1_000_000); assert_eq!(model["default_reasoning_level"], "high"); - assert_eq!(reasoning_efforts(model), ["high", "xhigh"]); + assert_eq!(reasoning_efforts(model), ["low", "high", "max"]); assert_eq!(model["input_modalities"], serde_json::json!(["text"])); assert_eq!(model["supports_parallel_tool_calls"], false); assert_eq!(model["supports_search_tool"], false); diff --git a/src/pages/ApiAccessPage.tsx b/src/pages/ApiAccessPage.tsx index 2a80b96..6bd114b 100644 --- a/src/pages/ApiAccessPage.tsx +++ b/src/pages/ApiAccessPage.tsx @@ -79,7 +79,7 @@ export type ProviderCategory = ProviderSection | 'deepseek'; export const DEEPSEEK_BASE_URL = 'https://api.deepseek.com'; export const OPENAI_THINKING_LEVELS = ['low', 'medium', 'high', 'xhigh'] as const; -export const DEEPSEEK_THINKING_LEVELS = OPENAI_THINKING_LEVELS; +export const DEEPSEEK_THINKING_LEVELS = ['low', 'high', 'max'] as const; type ProviderDefinition = { id: ProviderCategory; diff --git a/tests/providerConfig.test.ts b/tests/providerConfig.test.ts index 358f5da..3e26552 100644 --- a/tests/providerConfig.test.ts +++ b/tests/providerConfig.test.ts @@ -52,6 +52,7 @@ describe('API 接入配置合并', () => { }); it('DeepSeek 新增预设默认发现全部模型并应用内置思考等级', () => { + expect(DEEPSEEK_THINKING_LEVELS).toEqual(['low', 'high', 'max']); const draft = createProviderDraft('deepseek'); const discovered = [ { name: 'deepseek-chat' },