Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
anthropic: Remove `cache_control` field from `ResponseContent` (#17165)
Marshall Bowersea25d438d1c8
diff --git a/crates/anthropic/src/anthropic.rs b/crates/anthropic/src/anthropic.rsindex cb41d9cf1ac..4c7e6495e0e 100644--- a/crates/anthropic/src/anthropic.rs+++ b/crates/anthropic/src/anthropic.rs@@ -450,18 +450,12 @@ pub enum RequestContent {#[serde(tag = "type")]pub enum ResponseContent {#[serde(rename = "text")]- Text {- text: String,- #[serde(skip_serializing_if = "Option::is_none")]- cache_control: Option<CacheControl>,- },+ Text { text: String },#[serde(rename = "tool_use")]ToolUse {id: String,name: String,input: serde_json::Value,- #[serde(skip_serializing_if = "Option::is_none")]- cache_control: Option<CacheControl>,},}