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
2cb578508bBennet Bo Fenner committed on 8/14/2026, 9:32:13 AM· committed by GitHubparent0ad5441
1 file changedLine totals unavailable