# anthropic: Don't bail out on unknown model ID \(\#23782\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 070890d36111a5265fc2336180747bf33d1006f1

Requested commit: 070890d36111a5265fc2336180747bf33d1006f1

Commit: 070890d36111a5265fc2336180747bf33d1006f1

Tree: 4a50f7c5d9afcdfb4e88db6ad1bd41ab2cc7f61a

Author: Marshall Bowers

Committer: GitHub

## Message

```
anthropic: Don't bail out on unknown model ID (#23782)

This PR fixes an issue introduced in
https://github.com/zed-industries/zed/pull/20551/ that would prevent
models with unknown IDs from working in the LLM service.

We only need to look up a model from its ID for the beta headers, and if
we can't find that particular model we should fall back to the default
beta headers instead of bailing out completely,

Release Notes:

- N/A
```

## Parents

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

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