You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Got this error AFTER i tried to extend to 128k window with sonnet 3.7
Here's the script for repro (too long to put in log output) test_llm_think.txt
litellm.exceptions.BadRequestError: litellm.BadRequestError: AnthropicException - {"type":"error","error":{"type":"invalid_request_error","message":"messages.1.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 (preceeding the lastmost set of `tool_use` and `tool_result` blocks). 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"}}
What happened?
Got this error AFTER i tried to extend to 128k window with sonnet 3.7
Here's the script for repro (too long to put in log output)
test_llm_think.txt
Relevant log output
Are you a ML Ops Team?
No
What LiteLLM version are you on ?
branch = "litellm_dev_03_03_2025_p3" commit = "a1a711abfa120e62944c3639620c6bce96671ba5"
Twitter / LinkedIn details
No response
The text was updated successfully, but these errors were encountered: