Published On Mar 2, 2023
🎓 Join my learning platform for module based courses, learning exercises, and more: https://coderprep.com/
In this video we use the new OpenAI gpt-3.5-turbo model to create a ChatGPT application in React. This is one of the fastest GPT models to be released. This video is great for beginners to both React and ChatGPT, and is a great portfolio project. We create a chatbot that allows you to communicate directly with the ChatGPT API, which is a project that can be applied to a vast array of React projects! This project gives you a great understanding of the ChatGPT API, even if you don’t plan to replicate the project created in the video yourself.
Final Project Code: https://github.com/coopercodes/ReactC...
0:00 Intro
0:50 Create chat UI / Manage messages state
7:52 Set up ChatGPT API
9:19 Process message with ChatGPT API
17:40 Show ChatGPT response to user
19:58 Changing system message prompt
21:15 Thanks for watching!