openai-cookbook icon indicating copy to clipboard operation
openai-cookbook copied to clipboard

Issue in fine tuning

Open Anjali1mg opened this issue 2 years ago • 1 comments
trafficstars

Giving error: Error: No API key provided. while running the openai api fine_tunes.create command

Anjali1mg avatar Apr 16 '23 18:04 Anjali1mg

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.

sidorowicz-aleksandra avatar Apr 25 '23 09:04 sidorowicz-aleksandra

openai.api_key = XXXX

this error still consists although my API key set as above prior to running the finetuning code.

damlitos avatar Jun 06 '23 12:06 damlitos