From 7dddc491211ecf7deb291985127e29475b95fe5e Mon Sep 17 00:00:00 2001 From: Bryan Helmkamp Date: Mon, 23 Feb 2026 10:05:43 -0500 Subject: [PATCH] Remove deprecated anthropic-beta header values The `extended-thinking-2025-04-14` and `max-tokens-3-5-sonnet-2025-04-14` beta headers are no longer accepted by the Anthropic API. Co-Authored-By: Claude Opus 4.6 --- crates/agent/src/profiles/anthropic.rs | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/crates/agent/src/profiles/anthropic.rs b/crates/agent/src/profiles/anthropic.rs index 1191ef8b4..567b08aa9 100644 --- a/crates/agent/src/profiles/anthropic.rs +++ b/crates/agent/src/profiles/anthropic.rs @@ -149,7 +149,7 @@ in the project. Keep changes minimal and focused on the task."; fn provider_options(&self) -> Option { Some(serde_json::json!({ "anthropic": { - "beta_headers": ["interleaved-thinking-2025-05-14", "extended-thinking-2025-04-14", "max-tokens-3-5-sonnet-2025-04-14"] + "beta_headers": ["interleaved-thinking-2025-05-14"] } })) } @@ -285,14 +285,6 @@ mod tests { headers.contains(&"interleaved-thinking-2025-05-14"), "beta_headers should contain interleaved-thinking header" ); - assert!( - headers.contains(&"extended-thinking-2025-04-14"), - "beta_headers should contain extended-thinking header" - ); - assert!( - headers.contains(&"max-tokens-3-5-sonnet-2025-04-14"), - "beta_headers should contain max-tokens header" - ); } #[test]