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
{{ message }}
Repository navigation
Context Limit Exceeded: Reduce Input Length or Max Tokens #228
Bug Description
API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"input length and max_tokens exceed context limit: 184915 +
20000 > 204648, decrease input length or max_tokens and try again"}}
Environment Info
Platform: macos
Terminal: ghostty
Version: 0.2.27
Feedback ID: 7dfd7a4e-beb9-427f-bbb2-395d1c3aa57c
Interesting note - it was working on the following code at the moment this error occurred:
<cfset grokResponse = aiProxy.sendMessage(
85 message = "Hello, please give me a very short greeting.",
86 modelProvider = "grok"
85 message = "Hello! My name is Grok User. Please give me a very short greeting.",
86 modelProvider = "grok",
87 maxTokens = 100,
88 temperature = 0.7
89 )>
90
Just in case that somehow when claude was submitting the code to the it's own api, maybe it is seeing the "maxTokens" in my code and it is confusing it. I doubt it and it is probably a coincidence but just in case.
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.
Activity
github-actions commentedon Aug 9, 2025
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.