Below is a simple example of how you can use Python to send a prompt to the OpenAI API and display the response.
The way Chat GPT works:
There is the Open AI Language Model: hosted on a server somewhere.
Chat GPT : You are using a Website: This website sends API calls to the Open AI Language Model. This is a PYTORCH TENSOR FILE that we will learn to make in Week 3 using the Python PYTORCH library.
The reason WHY we are doing this lab is to introduce the understanding, tools, and work practices you will be developing to your Assignment and Project in this Course.
Tools:
To work on Local Premises, we need a PYTHON IDE:
We will work on local premises: Visual Studio Code and Anaconda PYTHON distro.
To achieve the high performance compute that we need for AI Model Building: We will use Cloud Services: