language_models: Update default/recommended Anthropic models to Claude Sonnet 4 (#31209)
This PR updates the default/recommended models for the Anthropic and Zed providers to be Claude Sonnet 4. Release Notes: - Updated default/recommended Anthropic models to Claude Sonnet 4.
This commit is contained in:
parent
fc78408ee4
commit
37047a6fde
3 changed files with 6 additions and 6 deletions
|
@ -34,7 +34,6 @@ pub enum AnthropicModelMode {
|
|||
pub enum Model {
|
||||
#[serde(rename = "claude-3-5-sonnet", alias = "claude-3-5-sonnet-latest")]
|
||||
Claude3_5Sonnet,
|
||||
#[default]
|
||||
#[serde(rename = "claude-3-7-sonnet", alias = "claude-3-7-sonnet-latest")]
|
||||
Claude3_7Sonnet,
|
||||
#[serde(
|
||||
|
@ -49,6 +48,7 @@ pub enum Model {
|
|||
alias = "claude-opus-4-thinking-latest"
|
||||
)]
|
||||
ClaudeOpus4Thinking,
|
||||
#[default]
|
||||
#[serde(rename = "claude-sonnet-4", alias = "claude-sonnet-4-latest")]
|
||||
ClaudeSonnet4,
|
||||
#[serde(
|
||||
|
|
|
@ -240,8 +240,8 @@ impl LanguageModelProvider for AnthropicLanguageModelProvider {
|
|||
|
||||
fn recommended_models(&self, _cx: &App) -> Vec<Arc<dyn LanguageModel>> {
|
||||
[
|
||||
anthropic::Model::Claude3_7Sonnet,
|
||||
anthropic::Model::Claude3_7SonnetThinking,
|
||||
anthropic::Model::ClaudeSonnet4,
|
||||
anthropic::Model::ClaudeSonnet4Thinking,
|
||||
]
|
||||
.into_iter()
|
||||
.map(|model| self.create_language_model(model))
|
||||
|
|
|
@ -278,7 +278,7 @@ impl LanguageModelProvider for CloudLanguageModelProvider {
|
|||
|
||||
fn default_model(&self, cx: &App) -> Option<Arc<dyn LanguageModel>> {
|
||||
let llm_api_token = self.state.read(cx).llm_api_token.clone();
|
||||
let model = CloudModel::Anthropic(anthropic::Model::Claude3_7Sonnet);
|
||||
let model = CloudModel::Anthropic(anthropic::Model::ClaudeSonnet4);
|
||||
Some(self.create_language_model(model, llm_api_token))
|
||||
}
|
||||
|
||||
|
@ -291,8 +291,8 @@ impl LanguageModelProvider for CloudLanguageModelProvider {
|
|||
fn recommended_models(&self, cx: &App) -> Vec<Arc<dyn LanguageModel>> {
|
||||
let llm_api_token = self.state.read(cx).llm_api_token.clone();
|
||||
[
|
||||
CloudModel::Anthropic(anthropic::Model::Claude3_7Sonnet),
|
||||
CloudModel::Anthropic(anthropic::Model::Claude3_7SonnetThinking),
|
||||
CloudModel::Anthropic(anthropic::Model::ClaudeSonnet4),
|
||||
CloudModel::Anthropic(anthropic::Model::ClaudeSonnet4Thinking),
|
||||
]
|
||||
.into_iter()
|
||||
.map(|model| self.create_language_model(model, llm_api_token.clone()))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue