From 68994488121abadb9991ad45911e67613d30ea99 Mon Sep 17 00:00:00 2001 From: Andrew Farkas <6060305+HactarCE@users.noreply.github.com> Date: Thu, 20 Nov 2025 15:16:09 -0500 Subject: [PATCH] Remove `prompt-caching-2024-07-31` beta header for Anthropic AI (#43185) Closes #42715 Release Notes: - Remove `prompt-caching-2024-07-31` beta header for Anthropic AI Co-authored-by: Cole Miller --- crates/anthropic/src/anthropic.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/crates/anthropic/src/anthropic.rs b/crates/anthropic/src/anthropic.rs index cd2077cdeb1370a9753df83f9b239ef776bab149..fd665e07dd7515198ee6d65cbb2b0ee69e75dce5 100644 --- a/crates/anthropic/src/anthropic.rs +++ b/crates/anthropic/src/anthropic.rs @@ -393,13 +393,8 @@ impl Model { } } - pub const DEFAULT_BETA_HEADERS: &[&str] = &["prompt-caching-2024-07-31"]; - pub fn beta_headers(&self) -> String { - let mut headers = Self::DEFAULT_BETA_HEADERS - .iter() - .map(|header| header.to_string()) - .collect::>(); + let mut headers = vec![]; match self { Self::Claude3_7Sonnet | Self::Claude3_7SonnetThinking => {