rubberduck-ai / rubberduck-vscode

Use AI-powered code edits, explanations, code generation, error diagnosis, and chat in Visual Studio Code with the official OpenAI API.
https://marketplace.visualstudio.com/items?itemName=Rubberduck.rubberduck-vscode
MIT License
582 stars 70 forks source link

Error: You exceeded your current quota, please check your plan and billing details. #67

Closed adamddurrant closed 1 year ago

adamddurrant commented 1 year ago

I keep getting the following error:

Error: You exceeded your current quota, please check your plan and billing details.

I have resubmitted my API key numerous times with new generation. I've also triple checked my usage and i've used next to none of my credits.

I'd really like to use this extension.

BenjaminHoegh commented 1 year ago

You need to have a subscription at OpenAPI before you can use there API

adamddurrant commented 1 year ago

So you're saying you can't use rubber duck with the free $18 API credits? You have to be a paid subscriber?

On Wed, 8 Mar 2023, 7:58 am Benjamin Høegh, @.***> wrote:

You need to have a subscription at OpenAPI before you can use there API

— Reply to this email directly, view it on GitHub https://github.com/rubberduck-ai/rubberduck-vscode/issues/67#issuecomment-1459686552, or unsubscribe https://github.com/notifications/unsubscribe-auth/AM63Q53QOVIAWQZR6QDG5LDW3A3ZZANCNFSM6AAAAAAVSWHMHY . You are receiving this because you authored the thread.Message ID: @.***>

BenjaminHoegh commented 1 year ago

if you still have some left, then it should work, but I do not know if OpenAI gives access to the API with the trail credits

adamddurrant commented 1 year ago

It does. I have barely used any of the available credits and have an API key but still get the message. Perhaps it's an issue on the openai end 🤷‍♂️

On Wed, 8 Mar 2023, 9:04 am Benjamin Høegh, @.***> wrote:

if you still have some left, then it should work, but I do not know if OpenAI gives access to the API with the trail credits

— Reply to this email directly, view it on GitHub https://github.com/rubberduck-ai/rubberduck-vscode/issues/67#issuecomment-1459797463, or unsubscribe https://github.com/notifications/unsubscribe-auth/AM63Q5ZF3YVRB5ZE2ENGDDTW3BDRVANCNFSM6AAAAAAVSWHMHY . You are receiving this because you authored the thread.Message ID: @.***>

lgrammel commented 1 year ago

I suspect it's an issue on the OpenAI end. Can you try to call their API directly, e.g. with:

curl https://api.openai.com/v1/completions \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -d '{
  "model": "text-davinci-003",
  "prompt": "Say this is a test",
  "max_tokens": 7,
  "temperature": 0
}'
womackn commented 1 year ago

Getting the same error here as well. It seems Rubberduck's documentation is insufficient to explain what exactly is necessary for it to work aside from an API key. Guess it's back to copy/pasting code into ChatGPT.

jamescardona11 commented 1 year ago

Check if the credits have not expired, if it doesn't work generate a new API key. This solved my problem.

adamddurrant commented 1 year ago

Hi all,

I finally understood this to be a poor explanation on OpenAI's part on how free credits work and how they are visually shown in your account.

TL;DR you can use rubberduck with free credits but the free credits for your API usage expire after 3 months.

This stack overflow answer shows you how to tell if your free credits expired.

If you want to try rubberduck with free credits after they have expired, create another openAI account or subscribe with a credit card.

womackn commented 1 year ago

Thanks for the response Adam, I'll take a look. Have a great week!

From: Adam Durrant @.> Sent: Sunday, April 16, 2023 6:22 AM To: rubberduck-ai/rubberduck-vscode @.> Cc: Neil Womack @.>; Comment @.> Subject: Re: [rubberduck-ai/rubberduck-vscode] Error: You exceeded your current quota, please check your plan and billing details. (Issue #67)

Caution: This email is from an External Source. Do not click on links or open attachments unless you recognize the sender.

Hi all,

I finally understood this to be a poor explanation on OpenAI's part on how free credits work and how they are visually shown in your account.

TL;DR you can use rubberduck with free credits but the free credits for your API usage expire after 3 months.

This stack overflow answerhttps://stackoverflow.com/questions/75898276/openai-chatgpt-gpt-3-5-api-error-429-you-exceeded-your-current-quota-please/75898717#75898717 shows you how to tell if your free credits expired.

If you want to try rubberduck with free credits after they have expired, create another openAI account or subscribe with a credit card.

- Reply to this email directly, view it on GitHubhttps://github.com/rubberduck-ai/rubberduck-vscode/issues/67#issuecomment-1510270061, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AWXCSI2A3A7FWQO2ESFFAPTXBPB3XANCNFSM6AAAAAAVSWHMHY. You are receiving this because you commented.Message ID: @.***>

Confidentiality Notice The materials in this electronic mail transmission (including all attachments) are private and confidential and are the property of the sender. The information contained in the material is privileged and is intended only for the use of the named addressee(s). If you are not the intended addressee, be advised that any unauthorized disclosure, copying, distribution or the taking of any action in reliance on the contents of this material is strictly prohibited. If you have received the contents of this electronic mail transmission in error, please immediately notify the sender by telephone at (317) 757-3481, and thereafter, destroy it immediately.