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

Getting "Rate limit exceeded" too often for a low-consumption use case #7

Open
carloslfu opened this issue Oct 5, 2024 · 4 comments

Comments

@carloslfu
Copy link

carloslfu commented Oct 5, 2024

I'm getting rate-limited very often while testing a low-consumption use case. Doing this with https://github.com/openai/openai-realtime-console doesn't fire the rate limit. It's the same use case and volume (just one user). What could be happening under the hood? Maybe the LiveKit libraries do many extra calls?

Screenshot 2024-10-05 at 1 34 31 PM

@carloslfu carloslfu changed the title Getting "Rate limit exceeded" too often for a low consumption use case Getting "Rate limit exceeded" too often for a low-consumption use case Oct 5, 2024
@davidzhao
Copy link
Contributor

what is your rate limit set to? we would keep a persistent websocket connection to OpenAI. it's not clear why it would consume more of your rate limit.

@carloslfu
Copy link
Author

carloslfu commented Oct 7, 2024

Hi @davidzhao! What do you mean by my rate limits? LiveKit's or OpenAI's rate limits?

After testing it more, I got a bit more information. I get those errors after interrupting the model several times. Maybe it's a LiveKit rate limit? I'm using the free plan for testing purposes.

Doing the same on the OpenAI playground doesn't hit any of OpenAI's rate limits.

Screenshot 2024-10-07 at 12 46 42 PM

@mukulrajpoot262610
Copy link

@carloslfu is it solved?

@carloslfu
Copy link
Author

I haven't tried again, but maybe it was. I see the @livekit/agents dependency was updated. I'll try again as soon as I have some free time.

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

No branches or pull requests

3 participants