Switch to Anthropic -latest tags (#19615)

- Closes: https://github.com/zed-industries/zed/issues/19609

Switches us to using `-latest` tags with Anthropic models instead of
pinning to a specific date version.
See: [Anthropic Model
Docs](https://docs.anthropic.com/en/docs/about-claude/models)

This is a no-op for:
- Claude 3 Opus (`claude-3-opus-20240229`)
- Claude 3 Sonnet (`claude-3-sonnet-20240229`)
- Claude 3 Haiku (`claude-3-haiku-20240307`)

For Claude 3.5 Sonnet this will update us from
`claude-3-5-sonnet-20240620` to `claude-3-5-sonnet-20241022`. We will
also pickup any subsequent model updates automatically when Anthropic
updates the `latest` tag.

This matches the behavior for OpenAI where use `gpt-4o` as the
model_name and not `gpt-4o-2024-08-06`.
This commit is contained in:
Peter Tripp
2024-10-23 15:13:52 -04:00
committed by GitHub
parent 9c0dba4ce1
commit 291af664e1
3 changed files with 11 additions and 11 deletions
+2 -2
View File
@@ -49,8 +49,8 @@ You can add custom models to the Anthropic provider by adding the following to y
"anthropic": {
"available_models": [
{
"name": "some-model",
"display_name": "some-model",
"name": "claude-3-5-sonnet-20240620",
"display_name": "Sonnet 2024-June",
"max_tokens": 128000,
"max_output_tokens": 2560,
"cache_configuration": {