Uncategorized

visual studio – Stuck on testing python file for openAI using VS Code (so I can use DALLE-3)


I am trying to set up OPENAI API via VS Code so I can run DALLE-3. I have python installed in VS Code. I have the python library installed. I have my API Key set up and checked that it is installed. Now, I am trying to make my first API request. I saved a file under python. I tried to run: python openai-test.py but my terminal said: “bash: python: command not found”.

I do not know what I did wrong. Please see the screen shot for a better understanding.

I am following along with the instructions on this website: https://platform.openai.com/docs/quickstart?context=python

screen shot of VS Code and API instructions

Any help appreciated!



Source link

Leave a Reply

Your email address will not be published. Required fields are marked *