Closed xerxel closed 4 hours ago
Thanks for trying aider and filing this issue. OpenRouter was down or had a problem. Aider handles this error better in the main branch.
The fix is available in the main branch. You can get it by installing the latest version from github:
aider --install-main-branch
# or...
python -m pip install --upgrade --upgrade-strategy only-if-needed git+https://github.com/Aider-AI/aider.git
If you have a chance to try it, let me know if it works better for you. I'm going to close this issue for now, but feel free to add a comment here and I will re-open. Or feel free to file a new issue any time.
I'm now getting this error - perhaps it's my fault!
litellm.APIConnectionError: APIConnectionError: OpenAIException - max_tokens limit exceeded: 8192 > 2328. To increase, visit https://openrouter.ai/credits and add more
credits
Aider version: 0.62.1 Python version: 3.11.10 Platform: Windows-10-10.0.19045-SP0 Python implementation: CPython Virtual environment: No OS: Windows 10 (64bit) Git version: git version 2.47.0.windows.2
An uncaught exception occurred: