jackMort / ChatGPT.nvim

ChatGPT Neovim Plugin: Effortless Natural Language Generation with OpenAI's ChatGPT API
Apache License 2.0
3.67k stars 311 forks source link

current quota exceeded #224

Closed azinsharaf closed 1 year ago

azinsharaf commented 1 year ago

I have a paid subscription ($20 per month), created a api key via https://platform.openai.com/account/api-keys, created a OPENAI_API_KEY environment variable in Windows 11 with the api key value. I am getting the following error when running :ChatGPT: You exceeded your current quota, please check your plan and billing details.

miguelmoraperea commented 1 year ago

@azinsharaf Try creating a new session with <C-n> that solved the issue for me.

azinsharaf commented 1 year ago

@miguelmoraperea creating a new session deletes the error message but it happens again after submitting a new query.

miguelmoraperea commented 1 year ago

@azinsharaf In that case, I think you might need to set up a billing account with ChatGPT API. "ChatGPT and ChatGPT Plus subscriptions are billed separately. The API has its own pricing, which can be found at https://openai.com/pricing. The ChatGPT Plus subscription covers usage on chat.openai.com only..." according to their website.

azinsharaf commented 1 year ago

i re-entered my credit card info and it started to work.