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

AstraDB component won't build citing OpenAI quota issue. #1871

Closed
AlastairJarvis opened this issue May 9, 2024 · 2 comments
Closed

AstraDB component won't build citing OpenAI quota issue. #1871

AlastairJarvis opened this issue May 9, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@AlastairJarvis
Copy link

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:

ValueError: Error building vertex Astra DB Search: Error code: 429 - {'error':
{'message': 'You exceeded your current quota, please check your plan and
billing details. For more information on this error, read the docs:
https://platform.openai.com/docs/guides/error-codes/api-errors.', 'type':
'insufficient_quota', 'param': None, 'code': 'insufficient_quota'}}

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

  • Browser: chrome on mac
  • Version: 1.0.0a29
Copy link

dosubot bot commented May 9, 2024

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:

  1. Verify OpenAI API Usage: Check your usage details on the OpenAI platform to understand your current quota consumption.
  2. OpenAI Support: If the issue persists, reaching out to OpenAI Support could provide clarity on your account's specific quotas or any restrictions.
  3. Wait and Retry: If you've recently added credits to your OpenAI account, there might be a delay in quota refresh. Attempting the operation after some time could yield different results.
  4. Review Your Code: Ensure your implementation correctly manages the OpenAI API key and avoids excessive calls that may hit rate limits.

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.

Details

Sources


About Dosu
This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research.

Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.

To continue the conversation, mention @dosu.

@dosubot dosubot bot added the bug Something isn't working label May 9, 2024
@nicoloboschi
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants