fix: model picker allowlist fallbacks

This commit is contained in:
Peter Steinberger
2026-01-21 11:22:23 +00:00
parent 884211a924
commit fb164b321e
6 changed files with 97 additions and 3 deletions

View File

@@ -6,6 +6,7 @@ import { applyAuthChoice, resolvePreferredProviderForAuthChoice } from "./auth-c
import { promptAuthChoiceGrouped } from "./auth-choice-prompt.js";
import {
applyModelAllowlist,
applyModelFallbacksFromSelection,
applyPrimaryModel,
promptDefaultModel,
promptModelAllowlist,
@@ -90,6 +91,7 @@ export async function promptAuthConfig(
});
if (allowlistSelection.models) {
next = applyModelAllowlist(next, allowlistSelection.models);
next = applyModelFallbacksFromSelection(next, allowlistSelection.models);
}
return next;