Skip to content

agent_ui: Search models only by name#44984

Merged
danilo-leal merged 1 commit intomainfrom
model-selector-search
Dec 16, 2025
Merged

agent_ui: Search models only by name#44984
danilo-leal merged 1 commit intomainfrom
model-selector-search

Conversation

@danilo-leal
Copy link
Member

We were previously matching the search on both model name and provider ID. In most cases, this would yield an okay result, but if you search for "Opus", for example, you'd see the Sonnet models in the search result, which was very confusing. This was because we were matching to both provider ID and model name. "Sonnet" and "Opus" share the same provider ID, so they both contain "Anthropic" as a prefix. Then, "Opus" contains the letter P, as well as Anthropic, thus the match.

Now, we're only matching by model name, which I think most of the time will yield more accurate results.

Release Notes:

  • agent: Improved the model search quality in the model picker.

@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Dec 16, 2025
@danilo-leal danilo-leal enabled auto-merge (squash) December 16, 2025 12:40
@danilo-leal danilo-leal merged commit 90d7ccf into main Dec 16, 2025
24 checks passed
@danilo-leal danilo-leal deleted the model-selector-search branch December 16, 2025 12:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant