Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Implement rate limit handling with 60s wait #668

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

erkinalp
Copy link

Changes

  • Add 60-second wait on HTTP 429 responses in retry_wrapper
  • Properly handle Groq API rate limit errors in groq_client
  • Add comprehensive test coverage for rate limit scenarios
  • Improve error messaging and logging

Testing

  • Added unit tests for retry_wrapper rate limit handling
  • Added unit tests for Groq client rate limit conversion
  • Manually tested with rate-limited API calls

Fixes #524

Link to Devin run: https://app.devin.ai/sessions/121045305ac0458bbdf2566092dbc1b2

devin-ai-integration bot and others added 2 commits December 18, 2024 16:07
- Add numpy>=1.24.0 to requirements.txt
- Create setup.py with core dependencies
- Add environment validation in init_devika
- Update installation documentation
- Add tests for numpy validation

Fixes stitionai#372

Co-Authored-By: Erkin Alp Güney <[email protected]>
- Add 60-second wait on HTTP 429 responses
- Properly handle Groq API rate limit errors
- Add comprehensive test coverage
- Improve error messaging and logging

Fixes stitionai#524

Co-Authored-By: Erkin Alp Güney <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEATURE] wait 60 seconds on HTTP 429 response
1 participant