[已解决] openai.error.AuthenticationError: No API key provided. You can set your API key in code using
作者:盐析白兔 | 2024-07-17 04:39:46
赞
踩
openai.error.authenticationerror: no api key provided. you can set your api
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.