Fix older Anthropic models not supporting -latest tags (#23372)

- Closes: https://github.com/zed-industries/zed/issues/22322
This commit is contained in:
Peter Tripp 2025-01-20 13:19:15 -05:00 committed by GitHub
parent 73001a72e3
commit 5f59536208
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -77,8 +77,8 @@ impl Model {
Model::Claude3_5Sonnet => "claude-3-5-sonnet-latest",
Model::Claude3_5Haiku => "claude-3-5-haiku-latest",
Model::Claude3Opus => "claude-3-opus-latest",
Model::Claude3Sonnet => "claude-3-sonnet-latest",
Model::Claude3Haiku => "claude-3-haiku-latest",
Model::Claude3Sonnet => "claude-3-sonnet-20240229",
Model::Claude3Haiku => "claude-3-haiku-20240307",
Self::Custom { name, .. } => name,
}
}