# anthropic: Filter models with null token limits \(\#62618\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 2cb578508bc358c65d78f47d5f54b68c05b87287

Requested commit: 2cb578508bc358c65d78f47d5f54b68c05b87287

Commit: 2cb578508bc358c65d78f47d5f54b68c05b87287

Tree: 467a740ffd65dfe98581c1f67ede3591a6d911fd

Author: Bennet Bo Fenner

Committer: GitHub

## Message

```
anthropic: Filter models with null token limits (#62618)

According to the docs these fields can be null:

https://platform.claude.com/docs/en/api/models/list#model_info.max_input_tokens

https://platform.claude.com/docs/en/api/models/list#model_info.max_tokens

Instead of failing the whole request, we filter those models out since
we can't handle models without knowing their context window size. Seems
like ClaudeCode follows the same approach.

Release Notes:

- N/A
```

## Parents

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

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