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

@@ -101,6 +101,13 @@ function buildModelPickerCatalog(params: {
const hasAllowlist = Object.keys(params.cfg.agents?.defaults?.models ?? {}).length > 0;
if (!hasAllowlist) {
for (const entry of params.allowedModelCatalog) {
push({
provider: entry.provider,
id: entry.id ?? "",
name: entry.name,
});
}
for (const entry of buildConfiguredCatalog()) {
push(entry);
}