Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Remove `prompt-caching-2024-07-31` beta header for Anthropic AI (#43185)

Andrew Farkas68994488121a
diff --git a/crates/anthropic/src/anthropic.rs b/crates/anthropic/src/anthropic.rs
index cd2077cdeb1..fd665e07dd7 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::<Vec<_>>();
+ let mut headers = vec![];
match self {
Self::Claude3_7Sonnet | Self::Claude3_7SonnetThinking => {