Error Setting Max Context Tokens for claude-3-7 #6492
-
What happened?I'm trying to configure claude-3-7-sonnet-20250219, but when I set the Max Context Tokens, it barfs out this error: [handleAbortError] AI response error; aborting request: Operation failed after 3 attempts: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages: at least one message is required"}} Version Informationlatest version Steps to Reproduce
What browsers are you seeing the problem on?No response Relevant log outputScreenshotsNo response Code of Conduct
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
This happens because the default max output tokens for Claude 3.7 Sonnet is 8192 tokens. This affects the context window, so we need to decrease that amount from whatever you set "Max Context Tokens" (defaults to 200k). Also worth mentioning that the thinking budget must remain under the "max output tokens" |
Beta Was this translation helpful? Give feedback.
This happens because the default max output tokens for Claude 3.7 Sonnet is 8192 tokens. This affects the context window, so we need to decrease that amount from whatever you set "Max Context Tokens" (defaults to 200k).
Also worth mentioning that the thinking budget must remain under the "max output tokens"