fix(codex): align DeepSeek reasoning levels with low high max

This commit is contained in:
lzt404 committed 2026-08-26 22:46:23 +08:00
1 parent 50df18067b
commit cb2cca1d7a
4 files changed
+13 -4

No files matched your search

@@ -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"
}
],
+1 -1
View File
@@ -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);
+1 -1
View File
@@ -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;
+1
View File
@@ -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' },