jackMort / ChatGPT.nvim

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

api key error #222

Closed azinsharaf closed 1 year ago

azinsharaf commented 1 year ago

I am using a paid plan and has created an env var OPENAI_API_KEY submitting any query returns "incorrect api key provided'. The API key in the screenshot below doesn't match with the one i have as env var.

image

jackMort commented 1 year ago

Make sure it's correctly exported, open terminal and run: echo $OPENAI_API_KEY to validate

azinsharaf commented 1 year ago

using it on Windows. dir envs: command returns the correct env variable value.

azinsharaf commented 1 year ago

it seems removing chatgpt.nvim folder in nvim-data parent folder and then installing it again fixed the issue.