Hello @diptimayee,
Nice, glad to hear that Git Bash worked successfully!
If you get the OpenAI API key error, then you need to ensure that:
- The environmental variable ‘OPENAI_API_KEY’ is set correctly with the correct OpenAI API key listed on the API key page (‘SK-…’) and that you also restarted your system after that to access the environmental key. NOTE: Do not add quotes to the API key if you’re adding it as an environmental variable.
Let me know if that doesn’t work because I believe you can also manually set the api_key variable by running:
# Confirmed this is correct (Line 161 in OpenAI module -> util.py file)
openai.api_key = "SK-..." # Quotes around API key is needed in this scenario.
Then try to create a fine_tune and let me know if it works after that!
Edit: Also ensure that you’ve completely upgraded the openai-python module by running the ‘pip install --upgrade openai’ command