#130·developer

OpenAI key error

Author: shaikansariCreated Jul 31, 2023Updated Nov 9, 2023

I have fixed "NameError: name 'args' is not defined #125 " in my local, but I am getting another error now.

raise openai.error.AuthenticationError( openai.error.AuthenticationError: No API key provided. You can set your API key in code using 'openai.api_key = ', or you can set the environment variable OPENAI_API_KEY=). If your API key is stored in a file, you can point the openai module at it with 'openai.api_key_path = '. You can generate API keys in the OpenAI web interface. See https://platform.openai.com/account/api-keys for details.