Fix Claude Sonnet 4 model ID (#31505)

This PR is a follow-up to
https://github.com/zed-industries/zed/pull/31415 that fixes the model ID
for Claude Sonnet 4.

With the release of the Claude 4 models, the model version now appears
at the end.

Release Notes:

- N/A
This commit is contained in:
Marshall Bowers 2025-05-27 09:10:29 -04:00 committed by GitHub
parent ee6ce78fed
commit a8ca7e9c04
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 12 additions and 12 deletions

View file

@ -729,14 +729,14 @@
// The provider to use. // The provider to use.
"provider": "zed.dev", "provider": "zed.dev",
// The model to use. // The model to use.
"model": "claude-4-sonnet" "model": "claude-sonnet-4"
}, },
// The model to use when applying edits from the agent. // The model to use when applying edits from the agent.
"editor_model": { "editor_model": {
// The provider to use. // The provider to use.
"provider": "zed.dev", "provider": "zed.dev",
// The model to use. // The model to use.
"model": "claude-4-sonnet" "model": "claude-sonnet-4"
}, },
// Additional parameters for language model requests. When making a request to a model, parameters will be taken // Additional parameters for language model requests. When making a request to a model, parameters will be taken
// from the last entry in this list that matches the model's provider and name. In each entry, both provider // from the last entry in this list that matches the model's provider and name. In each entry, both provider
@ -756,7 +756,7 @@
// To set parameters for a specific provider and model: // To set parameters for a specific provider and model:
// { // {
// "provider": "zed.dev", // "provider": "zed.dev",
// "model": "claude-4-sonnet", // "model": "claude-sonnet-4",
// "temperature": 1.0 // "temperature": 1.0
// } // }
], ],

View file

@ -1018,7 +1018,7 @@ mod tests {
AssistantSettings::get_global(cx).default_model, AssistantSettings::get_global(cx).default_model,
LanguageModelSelection { LanguageModelSelection {
provider: "zed.dev".into(), provider: "zed.dev".into(),
model: "claude-4-sonnet".into(), model: "claude-sonnet-4".into(),
} }
); );
}); });

View file

@ -152,8 +152,8 @@ You can configure a model to use [extended thinking](https://docs.anthropic.com/
```json ```json
{ {
"name": "claude-4-sonnet-latest", "name": "claude-sonnet-4-latest",
"display_name": "claude-4-sonnet-thinking", "display_name": "claude-sonnet-4-thinking",
"max_tokens": 200000, "max_tokens": 200000,
"mode": { "mode": {
"type": "thinking", "type": "thinking",
@ -455,7 +455,7 @@ Where `some-provider` can be any of the following values: `anthropic`, `google`,
### Default Model {#default-model} ### Default Model {#default-model}
Zed's hosted LLM service sets `claude-4-sonnet-latest` as the default model. Zed's hosted LLM service sets `claude-sonnet-4` as the default model.
However, you can change it either via the model dropdown in the Agent Panel's bottom-right corner or by manually editing the `default_model` object in your settings: However, you can change it either via the model dropdown in the Agent Panel's bottom-right corner or by manually editing the `default_model` object in your settings:
```json ```json
@ -488,7 +488,7 @@ Example configuration:
"version": "2", "version": "2",
"default_model": { "default_model": {
"provider": "zed.dev", "provider": "zed.dev",
"model": "claude-4-sonnet" "model": "claude-sonnet-4"
}, },
"inline_assistant_model": { "inline_assistant_model": {
"provider": "anthropic", "provider": "anthropic",
@ -520,7 +520,7 @@ One with Claude 3.7 Sonnet, and one with GPT-4o.
"agent": { "agent": {
"default_model": { "default_model": {
"provider": "zed.dev", "provider": "zed.dev",
"model": "claude-4-sonnet" "model": "claude-sonnet-4"
}, },
"inline_alternatives": [ "inline_alternatives": [
{ {

View file

@ -16,7 +16,7 @@ Zed's settings allow you to specify a custom temperature for a provider and/or m
// To set parameters for a specific provider and model: // To set parameters for a specific provider and model:
{ {
"provider": "zed.dev", "provider": "zed.dev",
"model": "claude-4-sonnet", "model": "claude-sonnet-4",
"temperature": 1.0 "temperature": 1.0
} }
], ],

View file

@ -3287,11 +3287,11 @@ Run the `theme selector: toggle` action in the command palette to see a current
"default_view": "thread", "default_view": "thread",
"default_model": { "default_model": {
"provider": "zed.dev", "provider": "zed.dev",
"model": "claude-4-sonnet" "model": "claude-sonnet-4"
}, },
"editor_model": { "editor_model": {
"provider": "zed.dev", "provider": "zed.dev",
"model": "claude-4-sonnet" "model": "claude-sonnet-4"
}, },
"single_file_review": true, "single_file_review": true,
} }