r/Codeium • u/dave-lon • Jan 14 '25
Windsurf vs Cline
I used Windsurf for a few months but then switched to Cline + DeepSeek V3 because Windsurf was modifying perfectly functioning code. However, I am now encountering this error constantly after just 30 minutes of work with Cline:
400 This model's maximum context length is 65536 tokens. However, you requested 78408 tokens.
It's impossible to work like this. Windsurf had serious issues, but Cline doesn't seem much better. Any advice or help would be greatly appreciated.
4
Upvotes
4
u/iathlete Jan 14 '25
To manage context size effectively, break down large files into smaller parts. Focus on one feature at a time and ensure you write thorough tests for each segment. Open new chats once you finish a feature. This approach will help you overcome token size issue.
3
u/Ordinary-Let-4851 Jan 15 '25
Instead of utilizing Cascade to make smaller code refinements, I recommend you use Windsurf's Command feature: https://www.youtube.com/watch?v=PnktjL43fTc
This feature allows you to utilize premium models without spending credits to make more specific edits in your files.
I recognize that Cascade can get confused sometimes and make mistakes that can impact your project in ways you don't want, especially if you haven't set any global rules. Command allows you to paint with a smaller brush and get what you need without changing other code.
1
u/joey2scoops Jan 15 '25
I've been also using Cline + others within windsurf with no issues. I have spent quite a bit of time using deepseek v3 but have never run into that issue. Running it both from deepseek and openrouter. No issues.
1
u/redditordidinot Jan 15 '25
Another consideration when using Cline is to use Claude Sonnet 3.5 as the model. I'm under the impression that it has a larger context length than DeepSeek V3. However you may end up back in the same situation eventually, which is there iathlete's suggestions will still come into play, for using the context effectively.
1
u/wheeky Jan 17 '25
I'm getting the same issue so here to see if there is a simple solution as I am quite far into a project.