feat(codex): add dynamic CLI client profile

This commit is contained in:
AAEE86
2026-09-23 15:57:37 +08:00
parent 2a9d8d3b25
commit 7e033d0571
20 changed files with 707 additions and 61 deletions
@@ -594,11 +594,12 @@ async fn provider_query_fetch_models_for_key(
});
}
let dynamic_client_version = aether_ai_formats::codex_client_version();
let client_version = is_codex.then(|| {
codex_catalog
.as_ref()
.map(|catalog| catalog.client_version.as_str())
.unwrap_or(crate::ai_serving::CODEX_CLIENT_VERSION)
.unwrap_or(dynamic_client_version.as_str())
});
let outcome =
match fetch_models_from_transports_for_management(state.app(), &transports, client_version)