mesa / mesa/mesa-llm

Poor error message when API rate limit is exceeded

Open Beginner friendly
#257 2 comments 0 reactions 0 assignees View on GitHub

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:

  1. Set up Gemini free API key
  2. Run the negotiation example
  3. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.