Completed
- store the state variables
Class Central Classrooms beta
YouTube videos curated by Class Central.
Classroom Contents
Build a ChatGPT Chatbot with React and OpenAI - Step-by-Step Tutorial
Automatically move to the next video in the Classroom when playback concludes
- 1 - intro
- 2 - installation and obtaining the OpenAI API key
- 3 - storing the OpenAI key in the .env file and reading its value
- 4 - create the configuration object
- 5 - store the state variables
- 6 - set the buttons of question types
- 7 - add a form with the user input
- 8 - write a helper function to get the instructions for the chatbot
- 9 - send the data to the OpenAI platform and receive the response
- 10 - add a spinner
- 11 - final result