Regular LLM exceptions with Junie
I have a really exhausting problem with Junie: very often (yesterday about 40 times in 2 hours of work) I get an abort of the work with error message
LLM returned error response:Exception [...] with code 400: input length and max _tokens exceed context limit: 143139 + 64000 > 200000, decrease input length or ‘max_tokens’ and try again.
My prompt is already super short (usually 50 - 100 characters), the classes to be processed are also reasonable (approx. 300 lines).
I regularly have to restart the work with a “resume”.
Unfortunately, this costs a lot of “quota”, which yesterday shrank from 100% directly down to 70% (I have the AI Ultimate package). I have not found a solution even after several attempts.
Fewer files and shorter/modified prompts... no remedy. Like gambling.
Is there a known problem and/or a fix available?

IntelliJ IDEA 2025.1.3 (Ultimate Edition)
Build #IU-251.26927.53, built on June 23, 2025
Runtime version: 21.0.7+9-b895.130 aarch64 (JCEF 122.1.9)
org.jetbrains.junie (251.167.97)
Best regards,
Stefan
Please sign in to leave a comment.
Dear Stefan,
Thank you for reporting this issue.
Please check the existing article on this topic and follow the recommendations provided there to address your needs: SUPPORT-A-1853.
Please also be informed that an errored request doesn't affect quota.
Feel free to reach out if you need a quota increase for your Ultimate plan. Let me know if you have any specific questions or require further clarification.
Kind Regards,
Ecaterina
Ok, at least the “And how do i get my wasted quota back?” question is answered
Dear Ecaterina,
thank you very much for your reply. It's good to know that this topic is already on your radar.
Best regards,
Stefan