Poor error message when API rate limit is exceeded
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 73
- Forks
- 89
- Avg merge
- 14d 58m
- Merged PRs (30d)
- 2
Description
When a user exceeds their free API quota, mesa-llm
raises a 200 line LiteLLM exception with hundreds of lines
of JSON that is unreadable.
Steps to reproduce:
- Set up Gemini free API key
- Run the negotiation example
- Exceed the quota
Expected output : Clear message telling user what happened and how to fix it
Actual output : 200+ lines of unreadable (for user) JSON error
I have a fix ready — a try/except block in module_llm.py
that catches RateLimitError and raises a clean readable message.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in module_llm.py and inspect how the negotiation example handles the RateLimitError after the Gemini free API quota is exceeded. Reproduce the issue with a Gemini free API key, then verify that the resulting output clearly explains the quota problem and how to fix it, without the unreadable 200-line exception.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- api
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Quiet
- Clarity
- Clearly specified
- Newbie friendliness
- 63/100