mirror of
https://github.com/fawney19/Aether.git
synced 2026-09-02 09:20:22 +08:00
centralize openai responses alias handling
This commit is contained in:
@@ -7,6 +7,7 @@ repository.workspace = true
|
||||
description = "Pure scheduler health and quota logic extracted from aether-gateway"
|
||||
|
||||
[dependencies]
|
||||
aether-ai-formats.workspace = true
|
||||
aether-contracts.workspace = true
|
||||
aether-data-contracts.workspace = true
|
||||
aether-wallet.workspace = true
|
||||
|
||||
@@ -253,11 +253,7 @@ pub fn extract_global_priority_for_format(
|
||||
}
|
||||
|
||||
pub fn normalize_api_format(value: &str) -> String {
|
||||
match value.trim().to_ascii_lowercase().as_str() {
|
||||
"openai:cli" => "openai:responses".to_string(),
|
||||
"openai:compact" => "openai:responses:compact".to_string(),
|
||||
other => other.to_string(),
|
||||
}
|
||||
aether_ai_formats::normalize_legacy_openai_format_alias(value)
|
||||
}
|
||||
|
||||
fn row_has_candidate_model_name(
|
||||
|
||||
Reference in New Issue
Block a user