Add codex debug models to show model catalog (#18625)

This commit is contained in:
Andrey Mishchenko
2026-04-20 05:42:22 +00:00
committed by GitHub
parent 87fc21ff60
commit ab65fbbdd6
7 changed files with 140 additions and 11 deletions
+10
View File
@@ -253,6 +253,16 @@ impl ModelsManager {
self.build_available_models(remote_models)
}
/// Return the active raw model catalog, refreshing according to the specified strategy.
pub async fn raw_model_catalog(&self, refresh_strategy: RefreshStrategy) -> ModelsResponse {
if let Err(err) = self.refresh_available_models(refresh_strategy).await {
error!("failed to refresh available models: {err}");
}
ModelsResponse {
models: self.get_remote_models().await,
}
}
/// List collaboration mode presets.
///
/// Returns a static set of presets seeded with the configured model.