From 2bb16f771bb192a150bb7ca2e9a82db461b07ac6 Mon Sep 17 00:00:00 2001 From: jindongfu Date: Thu, 30 Apr 2026 00:33:18 +0800 Subject: [PATCH] fix(model-picker): hide models from providers without auth configured Previously, models from unconfigured providers were shown with an "auth missing" hint, flooding the picker with 900+ unusable entries. Now addModelSelectOption early-returns when the provider has no auth, so only usable models appear in /models and the web chat dropdown. Fixes #74423 --- src/flows/model-picker.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/flows/model-picker.ts b/src/flows/model-picker.ts index c7ad83c8e72..653da80f032 100644 --- a/src/flows/model-picker.ts +++ b/src/flows/model-picker.ts @@ -295,7 +295,7 @@ function addModelSelectOption(params: { hints.push(routeHint); } if (!params.hasAuth(params.entry.provider)) { - hints.push("auth missing"); + return; } const label = params.literalPrefixProviders.has(normalizeProviderId(params.entry.provider)) ? `${params.entry.provider}/${params.entry.id}`