Hi all,
I’m having trouble submitting a fine-tune job with Windows Command prompt.
I have successfully installed python and the openai CLI, and I’ve successfully used the CLI Data Preparation Tool to turn my .csv file into a JSONL file (two, actually, since the tool recommended creating a training file and a validation file).
I have created an environment variable using the Windows GUI AND by running the command setx OPEN_API_KEY "<my_key>"
in the Command Prompt, and I have confirmed that it has been set because it is echoed when I type echo %OPEN_API_KEY%
in a new Command Prompt.
But when I try and submit my fine-tune job using the openai CLI, I get an error in the Command Prompt. My command is:
openai api fine_tunes.create -t "pennyTrainingData01_prepared_train.jsonl" -v "pennyTrainingData01_prepared_valid.jsonl" -m "ada"
and the error I get is
←[91mError:←[0m No API key provided. You can set your API key in code using 'openai.api_key = <API-KEY>', or you can set the environment variable OPENAI_API_KEY=<API-KEY>). If your API key is stored in a file, you can point the openai module at it with 'openai.api_key_path = <PATH>'. You can generate API keys in the OpenAI web interface. See https://onboard.openai.com for details, or email support@openai.com if you have any questions.
If I do what that error suggests, and run openai.api_key = <API-KEY>
, I get the error 'openai.api_key' is not recognized as an internal or external command, operable program or batch file.
Can anyone help please?
Many thanks