mirror of
https://github.com/fawney19/Aether.git
synced 2026-10-11 03:39:49 +08:00
centralize openai responses alias handling
This commit is contained in:
@@ -313,14 +313,7 @@ impl<'a> AdminAppState<'a> {
|
||||
|
||||
let provider_type = provider.provider_type.trim().to_ascii_lowercase();
|
||||
if provider_type == "codex"
|
||||
&& matches!(
|
||||
existing_endpoint
|
||||
.api_format
|
||||
.trim()
|
||||
.to_ascii_lowercase()
|
||||
.as_str(),
|
||||
"openai:responses" | "openai:cli"
|
||||
)
|
||||
&& crate::ai_pipeline::is_openai_responses_format(&existing_endpoint.api_format)
|
||||
{
|
||||
let has_config_in_payload = fields.contains("config");
|
||||
let config_payload = if has_config_in_payload {
|
||||
|
||||
Reference in New Issue
Block a user