From 5f595362087018a747662c53feee4c81e175fdbe Mon Sep 17 00:00:00 2001 From: Peter Tripp Date: Mon, 20 Jan 2025 13:19:15 -0500 Subject: [PATCH] Fix older Anthropic models not supporting `-latest` tags (#23372) - Closes: https://github.com/zed-industries/zed/issues/22322 --- crates/anthropic/src/anthropic.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/anthropic/src/anthropic.rs b/crates/anthropic/src/anthropic.rs index 03f60d5a86..1e0fdac11c 100644 --- a/crates/anthropic/src/anthropic.rs +++ b/crates/anthropic/src/anthropic.rs @@ -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, } }