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

Exceed current quota but none were used #58

Open
allegropiano opened this issue Feb 27, 2024 · 1 comment
Open

Exceed current quota but none were used #58

allegropiano opened this issue Feb 27, 2024 · 1 comment

Comments

@allegropiano
Copy link

I have set the open API key as follows:

Sys.setenv(OPENAI_API_KEY = 'XXXX')

And proceed to try this out but got the following error:

library(openai)

create_completion(

  • model = "babbage-002",
    
  • prompt = "Generate a question and an answer"
    
  • )
    Error: OpenAI API request failed [429]:

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.

I just logged on and check my quota and I am not over the quota at all? Is there another step that I need to do to try this out?

@irudnyts
Copy link
Owner

From my experience, if you register before certain point in time and did not use your quota, then it yield this error. I believe it has nothing to do with the package itself.

Btw, do not forget to replace XXXX with your actual key in Sys.setenv(OPENAI_API_KEY = 'XXXX').

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

2 participants