openai-cookbook
openai-cookbook copied to clipboard
Issue in fine tuning
trafficstars
Giving error: Error: No API key provided. while running the openai api fine_tunes.create command
As stated in the error message, you have to set the environment variable OPENAI_API_KEY=<your_key>.
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.
openai.api_key = XXXX
this error still consists although my API key set as above prior to running the finetuning code.