mirror of
https://github.com/fawney19/Aether.git
synced 2026-10-07 18:07:47 +08:00
feat(openai): align GPT-5.6 and Codex request contracts
This commit is contained in:
@@ -1736,66 +1736,7 @@ pub fn admin_system_config_default_value(key: &str) -> Option<serde_json::Value>
|
||||
"email_suffix_list" => Some(json!([])),
|
||||
"enable_format_conversion" => Some(json!(false)),
|
||||
"enable_model_directives" => Some(json!(false)),
|
||||
"model_directives" => Some(json!({
|
||||
"reasoning_effort": {
|
||||
"enabled": true,
|
||||
"api_formats": {
|
||||
"openai:chat": {
|
||||
"enabled": true,
|
||||
"mappings": {
|
||||
"low": { "reasoning_effort": "low" },
|
||||
"medium": { "reasoning_effort": "medium" },
|
||||
"high": { "reasoning_effort": "high" },
|
||||
"xhigh": { "reasoning_effort": "xhigh" },
|
||||
"max": { "reasoning_effort": "max" },
|
||||
"fast": { "service_tier": "priority" }
|
||||
}
|
||||
},
|
||||
"openai:responses": {
|
||||
"enabled": true,
|
||||
"mappings": {
|
||||
"low": { "reasoning": { "effort": "low" } },
|
||||
"medium": { "reasoning": { "effort": "medium" } },
|
||||
"high": { "reasoning": { "effort": "high" } },
|
||||
"xhigh": { "reasoning": { "effort": "xhigh" } },
|
||||
"max": { "reasoning": { "effort": "max" } },
|
||||
"fast": { "service_tier": "priority" }
|
||||
}
|
||||
},
|
||||
"openai:responses:compact": {
|
||||
"enabled": true,
|
||||
"mappings": {
|
||||
"low": { "reasoning": { "effort": "low" } },
|
||||
"medium": { "reasoning": { "effort": "medium" } },
|
||||
"high": { "reasoning": { "effort": "high" } },
|
||||
"xhigh": { "reasoning": { "effort": "xhigh" } },
|
||||
"max": { "reasoning": { "effort": "max" } },
|
||||
"fast": { "service_tier": "priority" }
|
||||
}
|
||||
},
|
||||
"claude:messages": {
|
||||
"enabled": true,
|
||||
"mappings": {
|
||||
"low": { "thinking": { "type": "enabled", "budget_tokens": 1024 } },
|
||||
"medium": { "thinking": { "type": "enabled", "budget_tokens": 4096 } },
|
||||
"high": { "thinking": { "type": "enabled", "budget_tokens": 8192 } },
|
||||
"xhigh": { "thinking": { "type": "enabled", "budget_tokens": 16384 } },
|
||||
"max": { "thinking": { "type": "enabled", "budget_tokens": 32768 } }
|
||||
}
|
||||
},
|
||||
"gemini:generate_content": {
|
||||
"enabled": true,
|
||||
"mappings": {
|
||||
"low": { "generationConfig": { "thinkingConfig": { "thinkingBudget": 1024 } } },
|
||||
"medium": { "generationConfig": { "thinkingConfig": { "thinkingBudget": 4096 } } },
|
||||
"high": { "generationConfig": { "thinkingConfig": { "thinkingBudget": 8192 } } },
|
||||
"xhigh": { "generationConfig": { "thinkingConfig": { "thinkingBudget": 16384 } } },
|
||||
"max": { "generationConfig": { "thinkingConfig": { "thinkingBudget": -1 } } }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
})),
|
||||
"model_directives" => Some(aether_ai_formats::default_model_directives_config()),
|
||||
"keep_priority_on_conversion" => Some(json!(false)),
|
||||
"audit_log_retention_days" => Some(json!(30)),
|
||||
"enable_db_maintenance" => Some(json!(true)),
|
||||
|
||||
Reference in New Issue
Block a user