Google Colab Fine-Tuning Error:

As far as I can tell, exporting a bash variable using !export VAR doesn’t work in colab (e.g. try

!export VAR="hello"
!echo $VAR

)

But you can set the env var with

os.environ["OPENAI_API_KEY"] = api_key
7 Likes