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 <cole@zed.dev>
This commit is contained in:
Andrew Farkas
2025-11-20 15:16:09 -05:00
committed by GitHub
co-authored by Cole Miller
parent 28ef7455f0
commit 6899448812
+1 -6
View File
@@ -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::<Vec<_>>();
let mut headers = vec![];
match self {
Self::Claude3_7Sonnet | Self::Claude3_7SonnetThinking => {