From 2ce4b08692cc7b9ed053ea213b0c8a49cf0993ae Mon Sep 17 00:00:00 2001 From: codestory Date: Mon, 24 Feb 2025 21:17:11 +0000 Subject: [PATCH] fix: update Claude Sonnet model string to 3-7 version --- llm_client/src/clients/anthropic.rs | 2 +- llm_client/src/clients/codestory.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/llm_client/src/clients/anthropic.rs b/llm_client/src/clients/anthropic.rs index f090694f6..5879c2d61 100644 --- a/llm_client/src/clients/anthropic.rs +++ b/llm_client/src/clients/anthropic.rs @@ -401,7 +401,7 @@ impl AnthropicClient { fn get_model_string(&self, llm_type: &LLMType) -> Result { match llm_type { LLMType::ClaudeOpus => Ok("claude-3-opus-20240229".to_owned()), - LLMType::ClaudeSonnet => Ok("claude-3-5-sonnet-20241022".to_owned()), + LLMType::ClaudeSonnet => Ok("claude-3-7-sonnet-20250219".to_owned()), LLMType::ClaudeHaiku => Ok("claude-3-haiku-20240307".to_owned()), LLMType::Custom(model) => Ok(model.to_owned()), _ => Err(LLMClientError::UnSupportedModel), diff --git a/llm_client/src/clients/codestory.rs b/llm_client/src/clients/codestory.rs index 206d23a8a..8545ce043 100644 --- a/llm_client/src/clients/codestory.rs +++ b/llm_client/src/clients/codestory.rs @@ -165,7 +165,7 @@ impl CodeStoryClient { LLMType::DeepSeekCoder33BInstruct => { Ok("deepseek-ai/deepseek-coder-33b-instruct".to_owned()) } - LLMType::ClaudeSonnet => Ok("claude-3-5-sonnet-20241022".to_owned()), // updated to latest sonnet + LLMType::ClaudeSonnet => Ok("claude-3-7-sonnet-20250219".to_owned()), // updated to latest sonnet LLMType::ClaudeHaiku => Ok("claude-3-5-haiku-20241022".to_owned()), // updated to latest haiku LLMType::GeminiPro => Ok("google/gemini-flash-1.5".to_owned()), LLMType::GeminiProFlash => Ok("gemini-1.5-flash".to_owned()), @@ -516,4 +516,4 @@ impl LLMClient for CodeStoryClient { } Ok(buffered_stream) } -} +} \ No newline at end of file