Skip to content

[agent farm] sonnet 3.7 (Run ID: codestoryai_sidecar_issue_2085_bedf1bdc) #2086

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions llm_client/src/clients/anthropic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,7 @@ impl AnthropicClient {
match llm_type {
LLMType::ClaudeOpus => Ok("claude-3-opus-20240229".to_owned()),
LLMType::ClaudeSonnet => Ok("claude-3-5-sonnet-20241022".to_owned()),
LLMType::ClaudeSonnet37 => 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),
Expand Down
8 changes: 4 additions & 4 deletions llm_client/src/clients/codestory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,8 @@ 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::ClaudeHaiku => Ok("claude-3-5-haiku-20241022".to_owned()), // updated to latest haiku
LLMType::ClaudeSonnet => Ok("claude-3-5-sonnet-20241022".to_owned()),
LLMType::ClaudeHaiku => Ok("claude-3-5-haiku-20241022".to_owned()),
LLMType::GeminiPro => Ok("google/gemini-flash-1.5".to_owned()),
LLMType::GeminiProFlash => Ok("gemini-1.5-flash".to_owned()),
LLMType::Gemini2_0Flash => Ok("google/gemini-2.0-flash-001".to_owned()),
Expand Down Expand Up @@ -199,7 +199,7 @@ impl CodeStoryClient {
LLMType::CodeLlama13BInstruct
| LLMType::CodeLlama7BInstruct
| LLMType::DeepSeekCoder33BInstruct => Ok(self.together_api_endpoint(&self.api_base)),
LLMType::ClaudeSonnet | LLMType::ClaudeHaiku => {
LLMType::ClaudeSonnet | LLMType::ClaudeSonnet37 | LLMType::ClaudeHaiku => {
Ok(self.openrouter_api_endpoint(&self.api_base))
}
LLMType::GeminiPro | LLMType::GeminiProFlash | LLMType::Gemini2_0Flash => {
Expand Down Expand Up @@ -516,4 +516,4 @@ impl LLMClient for CodeStoryClient {
}
Ok(buffered_stream)
}
}
}
6 changes: 4 additions & 2 deletions llm_client/src/clients/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ impl<'de> Deserialize<'de> for LLMType {
"DeepSeekCoder33BInstruct" => Ok(LLMType::DeepSeekCoder33BInstruct),
"ClaudeOpus" => Ok(LLMType::ClaudeOpus),
"ClaudeSonnet" => Ok(LLMType::ClaudeSonnet),
"ClaudeSonnet37" => Ok(LLMType::ClaudeSonnet37),
"ClaudeHaiku" => Ok(LLMType::ClaudeHaiku),
"PPLXSonnetSmall" => Ok(LLMType::PPLXSonnetSmall),
"CohereRerankV3" => Ok(LLMType::CohereRerankV3),
Expand Down Expand Up @@ -196,7 +197,7 @@ impl LLMType {
pub fn is_anthropic(&self) -> bool {
matches!(
self,
LLMType::ClaudeOpus | LLMType::ClaudeSonnet | LLMType::ClaudeHaiku
LLMType::ClaudeOpus | LLMType::ClaudeSonnet | LLMType::ClaudeHaiku | LLMType::ClaudeSonnet37
)
}

Expand Down Expand Up @@ -248,6 +249,7 @@ impl fmt::Display for LLMType {
LLMType::DeepSeekCoderV3 => write!(f, "deepseek/deepseek-chat"),
LLMType::ClaudeOpus => write!(f, "ClaudeOpus"),
LLMType::ClaudeSonnet => write!(f, "ClaudeSonnet"),
LLMType::ClaudeSonnet37 => write!(f, "ClaudeSonnet37"),
LLMType::ClaudeHaiku => write!(f, "ClaudeHaiku"),
LLMType::PPLXSonnetSmall => write!(f, "PPLXSonnetSmall"),
LLMType::CohereRerankV3 => write!(f, "CohereRerankV3"),
Expand Down Expand Up @@ -1048,4 +1050,4 @@ mod tests {
let str_llm_type = serde_json::to_string(&llm_type).expect("to work");
assert_eq!(str_llm_type, "");
}
}
}