Рет қаралды 76,223
Enjoying my videos? Sign up for more content here: www.coopercodes.com/
📩 Join CodeLetter by Cooper Codes, the 3 minute tech newsletter: thecodeletter.com
Join the Cooper Codes Community: / discord (Weekly calls, free resources, tutoring, and more!)
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: 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!