fix(test): stabilize cron output capture and clippy cleanups
This commit is contained in:
parent
483acccdb7
commit
50fd5b81e1
7 changed files with 20 additions and 19 deletions
|
|
@ -202,13 +202,11 @@ impl AnthropicProvider {
|
|||
if let Some(last_msg) = messages.last_mut() {
|
||||
if let Some(last_content) = last_msg.content.last_mut() {
|
||||
match last_content {
|
||||
NativeContentOut::Text { cache_control, .. } => {
|
||||
NativeContentOut::Text { cache_control, .. }
|
||||
| NativeContentOut::ToolResult { cache_control, .. } => {
|
||||
*cache_control = Some(CacheControl::ephemeral());
|
||||
}
|
||||
NativeContentOut::ToolResult { cache_control, .. } => {
|
||||
*cache_control = Some(CacheControl::ephemeral());
|
||||
}
|
||||
_ => {}
|
||||
NativeContentOut::ToolUse { .. } => {}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue