-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
AstraDB component won't build citing OpenAI quota issue. #1871
Comments
The error you're encountering is related to exceeding your OpenAI API quota, not an issue with AstraDB. The OpenAI API enforces quotas and rate limits that are separate from any credits or limits in your AstraDB account. Here's what you can do to address the issue:
Switching between models like gpt-3.5-turbo, gpt-4, or gpt-4-turbo does not directly impact these API-level quotas and rate limits. These are managed by OpenAI and apply across different models based on your account plan and usage.
|
The error happens because Astra, in order to get the correct number of vector dimensions, perform a call to the embeddings (openAI). Since you don't have credits, it can't get the n. of dimensions and it fails. |
Describe the bug
I ran out of Pay as You Go OpenAI credits (actually dipped into a negative balance). When building, failed on the AstraDB step giving the following error message:
I still have plenty of credits left in my AstraDB account.
I have topped up my OpenAi account and have credit available. Error still occurs.
I can't tell from the Error message in LangFlow if this is an AstraDB issue (fails is happening during this build step), an OpenAI balance issue (I had no more OpenAI credit when the build first failed in this way), or if I've exceeded a Rate limit (is this an embedding rate limit since it happens in the AstraDB step and I'm using OpenAI Embeddings?).
I managed to workaround by changing the model to gpt-4-turbo. gpt-3.5-turbo and gpt-4 have Requests per Day limits. gpt4-turbo does not. Maybe the requests per day quota is shared between 3.5 and 4 and I hit it.
At any rate, the error message is confusing.
Browser and Version
The text was updated successfully, but these errors were encountered: