chatgpt-vscode icon indicating copy to clipboard operation
chatgpt-vscode copied to clipboard

api key invalid

Open salmasultana478 opened this issue 1 year ago • 4 comments

Type: Bug

it's showing api-key not valid , so i want to reset api key how can i do that?

Extension version: 0.0.8 VS Code version: Code 1.81.0 (6445d93c81ebe42c4cbd7a60712e0b17d9463e97, 2023-08-02T12:37:13.485Z) OS version: Windows_NT x64 10.0.22621 Modes:

salmasultana478 avatar Aug 07 '23 06:08 salmasultana478

Search for "Genie: Clear API Key" in settings

thuan1091996 avatar Aug 07 '23 07:08 thuan1091996

I also got api key invalid. and tried Clear API Key many times. I think genie is blocked from openai.

hey-jk avatar Aug 09 '23 06:08 hey-jk

Does Genie support environment variables, such as OPENAI_API_KEY ?

robotaiguy avatar Oct 05 '23 05:10 robotaiguy

For me, this was not Genie's problem, it's a change in how the OpenAI API keys work. It used to be that you could use the API and you would pay at the end of the month. Now, you have to set up a balance in advance (at least 5 USD). Your invoices will then be deducted from the balance. If the balance goes to 0, or if you've never set it up, the API keys stop working.

Ansa211 avatar Nov 23 '23 04:11 Ansa211