No matter what i typpe in the chat box within any of my projects- i get the following terminal error- I don’t even type long messages or prompts to use the coder. Can someone help me figure it out?
AI_APICallError: This model’s maximum context length is 65536 tokens. However, you requested 200943 tokens (192943 in the messages, 8000 in the completion). Please reduce the length of the messages or completion.
Hi @mottobiz,
the Errors tells here exactly the problem, which is that your project is very big and to much to sent to Deepseek, cause it has only 65k context length, but you sent over 200k.
There were some improvements in the latest changes of bolt, but you need to checkout the main branch therefore and enable “Context Optimization” and “Optimized prompt” in the settings (will be default with the next release of bolt).
This should reduze the tokens drastically so you get results.
i transferred this project from windsurf to save money on bolt.diy. However does this mean we cannot work on big projects in bolt.diy?
You can but you need to do the steps mentioned above. Did you try?
okay let me try and i will get back to you. thanks so much for the support
1 Like