fix: Model selector fuzzy search matches id + provider

Restores original behavior from 3de8e075. Allows multi-token queries
like 'opus anthropic' to match Anthropic models.
This commit is contained in:
Mario Zechner 2026-01-11 18:04:57 +01:00
parent 3592f9b7c9
commit 5db7cc693b
2 changed files with 3 additions and 3 deletions

View file

@ -268,8 +268,8 @@ export class InteractiveMode {
label: `${m.provider}/${m.id}`,
}));
// Fuzzy filter by provider + model ID (allows "anthropic opus" to match)
const filtered = fuzzyFilter(items, prefix, (item) => `${item.provider} ${item.id}`);
// Fuzzy filter by model ID + provider (allows "opus anthropic" to match)
const filtered = fuzzyFilter(items, prefix, (item) => `${item.id} ${item.provider}`);
if (filtered.length === 0) return null;