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
While Cline searching for specific class in the project module, the error shows up as:
API Request Failed
This endpoint's maximum context length is 200000 tokens. However, you requested about 344204 tokens (336012 of text input, 8192 in the output). Please reduce the length of either one, or use the "middle-out" transform to compress your prompt automatically.
but the there's only 37 result:
[search_files for 'enum.*BusinessType'] Result:
Found 37 results.
...location of class...
<environment_details>
# VSCode Visible Files
...files...
# VSCode Open Tabs
...tabs...
</environment_details>
Steps to reproduce
Cline suggest the syntax error result (wrong type)
Cline correct itself by search the usage of the type
Cline popup the error
Relevant API REQUEST output
No response
Additional context
The text was updated successfully, but these errors were encountered:
Sometimes when you run a command with massive output or cline tries to read a binary file with an unexpected extension, it might overload the context window. Theres still some work that needs to go into the context management algorithm to better handle these scenarios.
saoudrizwan
changed the title
Search result reach maximum context length
Fix context window management algorithm to handle large terminal output or file reads
Nov 27, 2024
Which API Provider are you using?
OpenRouter
Which Model are you using?
anthropic/claude-3.5-sonnet:beta
What happened?
While Cline searching for specific class in the project module, the error shows up as:
but the there's only 37 result:
Steps to reproduce
Relevant API REQUEST output
No response
Additional context
The text was updated successfully, but these errors were encountered: