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:
co-authored by
Cole Miller
parent
28ef7455f0
commit
6899448812
@@ -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 => {
|
||||
|
||||
Reference in New Issue
Block a user