Hello World
In this lab, we run the simplest code possible to test using the OpenAI API using a low-cost small model.
This program should also test that the OPENAI_API_KEY is correctly stored in .env file that is NEVER checked into GitHub by correctly adding it to the .gitignore file. Check this now by running the following commmand:
1 |
|
You should see somthing like:
1 2 3 4 5 6 |
|
To keep our testing costs low, we will use the GPT 3.5 Turbo Model
1 |
|
Sample Program
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
|