Introduce ModelsManager and migrate app-server to use it. (#7552)

This commit is contained in:
Ahmed Ibrahim
2025-12-03 17:17:56 -08:00
committed by GitHub
parent 70b97790be
commit 00cc00ead8
14 changed files with 56 additions and 71 deletions

View File

@@ -1862,8 +1862,7 @@ impl CodexMessageProcessor {
async fn list_models(&self, request_id: RequestId, params: ModelListParams) {
let ModelListParams { limit, cursor } = params;
let auth_mode = self.auth_manager.auth().map(|auth| auth.mode);
let models = supported_models(auth_mode);
let models = supported_models(self.conversation_manager.clone()).await;
let total = models.len();
if total == 0 {