language_model: Allow Max Mode for Claude 4 models (#31207)

This PR adds the Claude 4 models to the list of models that support Max
Mode.

Release Notes:

- Added Max Mode support for Claude 4 models.
This commit is contained in:
Marshall Bowers 2025-05-22 14:50:30 -04:00 committed by GitHub
parent 37f49ce304
commit fc78408ee4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -248,6 +248,10 @@ pub trait LanguageModel: Send + Sync {
}
const MAX_MODE_CAPABLE_MODELS: &[CloudModel] = &[
CloudModel::Anthropic(anthropic::Model::ClaudeOpus4),
CloudModel::Anthropic(anthropic::Model::ClaudeOpus4Thinking),
CloudModel::Anthropic(anthropic::Model::ClaudeSonnet4),
CloudModel::Anthropic(anthropic::Model::ClaudeSonnet4Thinking),
CloudModel::Anthropic(anthropic::Model::Claude3_7Sonnet),
CloudModel::Anthropic(anthropic::Model::Claude3_7SonnetThinking),
];