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

Issue : Groq API Rate Limit Error Handling #601

Open
jiveshkalra opened this issue Jun 13, 2024 · 0 comments
Open

Issue : Groq API Rate Limit Error Handling #601

jiveshkalra opened this issue Jun 13, 2024 · 0 comments

Comments

@jiveshkalra
Copy link

Describe your issue

Currently the Groq client in the src/llm/groq_client.py doesnt have any error handling , while such code might be okay for other APIs which have bigger token limit but Groq Llama3 70b has a rate limit of 6k tokens PER MINUTE, which get reached very easily by devika
and as soon as that limit is reached , error pops up in the devika backend console and the current task gets stopped.

How To Reproduce

Steps to reproduce the behavior (example):

  1. Setup Devika with GROQ API
  2. Select Llama3 70B as a model
  3. Give a big problem that requires longer token limit (tbh any complex task will do)

Expected behavior

If the rate limit is reached for that minute , the agent should take a pause and then resume the task instead of abruptly stopping everything

Screenshots and logs

image

Configuration

- OS: Windows
- Python version: 3.11.5
- Node version:  20.9.0 
- search engine: DuckDuckGo
- Model: Groq Llama 3 70B
@jiveshkalra jiveshkalra changed the title GROQ API RATE LIMIT ERROR HANDLING Issue : Groq API Rate Limit Error Handling Jun 13, 2024
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 a pull request may close this issue.

1 participant