# agent_ui: Search models only by name \(\#44984\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/90d7ccfd5d0db23b04e4cf48d1f049b211654f12)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 90d7ccfd5d0db23b04e4cf48d1f049b211654f12

Requested commit: 90d7ccfd5d0db23b04e4cf48d1f049b211654f12

Commit: 90d7ccfd5d0db23b04e4cf48d1f049b211654f12

Tree: 3e0ae50740b577e74083db4a5b195aaa31c9c8c0

Author: Danilo Leal

Committer: GitHub

## Message

```
agent_ui: Search models only by name (#44984)

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.
```

## Parents

- [68295ba3713b00ddebaa8de81f166085d4fe5fc6](https://git.cafe/gitcafe/zed/commit/68295ba3713b00ddebaa8de81f166085d4fe5fc6?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/90d7ccfd5d0db23b04e4cf48d1f049b211654f12?format=markdown)
