From ba702d820f8609329451df5c0cfa422364a79cae Mon Sep 17 00:00:00 2001 From: Douwe Osinga Date: Mon, 12 Jan 2026 10:28:42 -0500 Subject: [PATCH] More 3.7 removal (#6414) Co-authored-by: Douwe Osinga --- crates/goose/src/providers/formats/anthropic.rs | 2 +- crates/goose/src/providers/formats/gcpvertexai.rs | 6 ------ crates/goose/src/providers/gcpvertexai.rs | 2 -- 3 files changed, 1 insertion(+), 9 deletions(-) diff --git a/crates/goose/src/providers/formats/anthropic.rs b/crates/goose/src/providers/formats/anthropic.rs index a2d81cb9..20f3c76c 100644 --- a/crates/goose/src/providers/formats/anthropic.rs +++ b/crates/goose/src/providers/formats/anthropic.rs @@ -436,7 +436,7 @@ pub fn create_request( .insert("temperature".to_string(), json!(temp)); } - // Add thinking parameters for claude-3-7-sonnet model + // Add thinking parameters when CLAUDE_THINKING_ENABLED is set let is_thinking_enabled = std::env::var("CLAUDE_THINKING_ENABLED").is_ok(); if is_thinking_enabled { // Minimum budget_tokens is 1024 diff --git a/crates/goose/src/providers/formats/gcpvertexai.rs b/crates/goose/src/providers/formats/gcpvertexai.rs index 8d60d601..9588df47 100644 --- a/crates/goose/src/providers/formats/gcpvertexai.rs +++ b/crates/goose/src/providers/formats/gcpvertexai.rs @@ -76,8 +76,6 @@ pub enum GcpVertexAIModel { /// Represents available versions of the Claude model for goose. #[derive(Debug, Clone, PartialEq, Eq)] pub enum ClaudeVersion { - /// Claude 3.7 Sonnet - Sonnet37, /// Claude Sonnet 4 Sonnet4, /// Claude Opus 4 @@ -113,7 +111,6 @@ impl fmt::Display for GcpVertexAIModel { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { let model_id = match self { Self::Claude(version) => match version { - ClaudeVersion::Sonnet37 => "claude-3-7-sonnet@20250219", ClaudeVersion::Sonnet4 => "claude-sonnet-4@20250514", ClaudeVersion::Opus4 => "claude-opus-4@20250514", ClaudeVersion::Generic(name) => name, @@ -157,7 +154,6 @@ impl TryFrom<&str> for GcpVertexAIModel { fn try_from(s: &str) -> Result { // Known models match s { - "claude-3-7-sonnet@20250219" => Ok(Self::Claude(ClaudeVersion::Sonnet37)), "claude-sonnet-4@20250514" => Ok(Self::Claude(ClaudeVersion::Sonnet4)), "claude-opus-4@20250514" => Ok(Self::Claude(ClaudeVersion::Opus4)), "gemini-1.5-pro-002" => Ok(Self::Gemini(GeminiVersion::Pro15)), @@ -376,7 +372,6 @@ mod tests { fn test_model_parsing() -> Result<()> { let valid_models = [ "claude-sonnet-4-20250514", - "claude-3-7-sonnet@20250219", "claude-sonnet-4@20250514", "gemini-1.5-pro-002", "gemini-2.0-flash-001", @@ -399,7 +394,6 @@ mod tests { fn test_default_locations() -> Result<()> { let test_cases = [ ("claude-sonnet-4-20250514", GcpLocation::Ohio), - ("claude-3-7-sonnet@20250219", GcpLocation::Ohio), ("claude-sonnet-4@20250514", GcpLocation::Ohio), ("gemini-1.5-pro-002", GcpLocation::Iowa), ("gemini-2.0-flash-001", GcpLocation::Iowa), diff --git a/crates/goose/src/providers/gcpvertexai.rs b/crates/goose/src/providers/gcpvertexai.rs index a1d45c55..6135c90f 100644 --- a/crates/goose/src/providers/gcpvertexai.rs +++ b/crates/goose/src/providers/gcpvertexai.rs @@ -440,7 +440,6 @@ impl Provider for GcpVertexAIProvider { Self: Sized, { let model_strings: Vec = [ - GcpVertexAIModel::Claude(ClaudeVersion::Sonnet37), GcpVertexAIModel::Claude(ClaudeVersion::Sonnet4), GcpVertexAIModel::Claude(ClaudeVersion::Opus4), GcpVertexAIModel::Gemini(GeminiVersion::Pro15), @@ -629,7 +628,6 @@ mod tests { .iter() .map(|m| m.name.clone()) .collect(); - assert!(model_names.contains(&"claude-3-7-sonnet@20250219".to_string())); assert!(model_names.contains(&"claude-sonnet-4@20250514".to_string())); assert!(model_names.contains(&"gemini-1.5-pro-002".to_string())); assert!(model_names.contains(&"gemini-2.5-pro".to_string()));