fix(test): stabilize cron output capture and clippy cleanups

This commit is contained in:
Chummy 2026-02-18 18:15:48 +08:00
parent 483acccdb7
commit 50fd5b81e1
7 changed files with 20 additions and 19 deletions

View file

@ -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 { .. } => {}
}
}
}