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 <noreply@anthropic.com>
This commit is contained in:
Bryan Helmkamp 2026-02-23 10:05:43 -05:00
parent d3e396753c
commit 7dddc49121

View file

@ -149,7 +149,7 @@ in the project. Keep changes minimal and focused on the task.";
fn provider_options(&self) -> Option<serde_json::Value> {
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]