anthropic: Remove cache_control
field from ResponseContent
(#17165)
This PR removes the `cache_control` field from the variants in `ResponseContent`. This field is used on requests to control the caching behavior, but is not needed on content in the response. Release Notes: - N/A
This commit is contained in:
parent
8901d926eb
commit
ea25d438d1
1 changed files with 1 additions and 7 deletions
|
@ -450,18 +450,12 @@ pub enum RequestContent {
|
||||||
#[serde(tag = "type")]
|
#[serde(tag = "type")]
|
||||||
pub enum ResponseContent {
|
pub enum ResponseContent {
|
||||||
#[serde(rename = "text")]
|
#[serde(rename = "text")]
|
||||||
Text {
|
Text { text: String },
|
||||||
text: String,
|
|
||||||
#[serde(skip_serializing_if = "Option::is_none")]
|
|
||||||
cache_control: Option<CacheControl>,
|
|
||||||
},
|
|
||||||
#[serde(rename = "tool_use")]
|
#[serde(rename = "tool_use")]
|
||||||
ToolUse {
|
ToolUse {
|
||||||
id: String,
|
id: String,
|
||||||
name: String,
|
name: String,
|
||||||
input: serde_json::Value,
|
input: serde_json::Value,
|
||||||
#[serde(skip_serializing_if = "Option::is_none")]
|
|
||||||
cache_control: Option<CacheControl>,
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue