Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cache warming error from Anthropic with thinking #3532

Open
samteezy opened this issue Mar 14, 2025 · 0 comments
Open

Cache warming error from Anthropic with thinking #3532

samteezy opened this issue Mar 14, 2025 · 0 comments
Labels

Comments

@samteezy
Copy link

Issue

Here's the error message that I get periodically with cache-keepalive-pings: 1

Cache warming error: litellm.BadRequestError: AnthropicException - {"type":"error","error":{"type":"invalid_request_error","message":"messages.127.content.0.type:
Expected thinking or redacted_thinking, but found text. When thinking is enabled, a final assistant message must start with a thinking block. We recommend
you include thinking blocks from previous turns. To avoid this requirement, disable thinking. Please consult our documentation at
https://docs.anthropic.com/en/docs/build-with-claude/extended-thinking"}}

Version and model info

Aider v0.77
Anthropic 3.7 Sonnet with thinking and caching enabled

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants