Let's Build ChatGPT 2.0 with React JS and OpenAI on your PC!

Adrian Twarog December 26, 2022
Video Thumbnail

About

No channel description available.

Video Description

ChatGPT clone using the latest React JS and simple HTML and CSS. Built on top of Node JavaScript and Express, this will let you run your own instance of ChatGPT on your own PC! ⭐ New - Teach Me OpenAI Digital Book ⭐ https://enhanceui.gumroad.com/l/teach-me-openai I've put together a easy to understand book with ~60 pages about OpenAI and GPT with how to get started to integrate it into projects, code examples, and much more! Chat GPT Starter Kit: https://enhanceui.gumroad.com/l/chatgpt-template-starter-kit OpenAI Template: https://enhanceui.gumroad.com/l/chatgpt-starter-template This video will cover how to code from scratch a Chat GPT interface for the frontend and a backend using Open AI latest package! It is a beginner-friendly tutorial for using the OpenAI API and working with models that are provided like DaVinci, ada, etc. You can build your own chatbot interface and this guide is also intended to help build the foundations to work with prompts and outputs from the chatgpt models. 00:00 - Introduction 00:12 - Coding ChatGPT preview 00:34 - OpenAI Template Starter Kit 00:57 - ChatGPT Starter Kit 01:22 - Initialising Project 02:47 - Starting Frontend with Create React App 03:03 - Designing ChatGPT Side menu 05:51 - Styling ChatGPT Side menu 12:34 - Designing Prompt Input 13:42 - Styling Chat GPT Input 18:52 - Coding Chatbot Interface 20:31 - Styling the Chat message interface 28:15 - Adding OpenAI SVG Logo 28:53 - Starting Backend with Express 29:54 - Preparing OpenAI Configuration and API Key 32:48 - Creating Express API Routes 34:03 - React Frontend handle Submit function 37:11 - Cleaning up the React Components 41:54 - Creating Frontend API Request using Fetch 47:17 - Frontend Backend integration 53:02 - Adding Features to Select OpenAI Models 01:02:02 - Conclusion #chatgpt #ai #openai

Craft Your AI Project Today

AI-recommended products based on this video

Loading...
Monster N-Lite 211 Wireless Earbuds, Bluetooth 6.0 Stereo Headphones with Noise-Cancelling Mic and LED Display, Built-in Mic for Clear Calls, Waterproof Design for Sports

Monster N-Lite 211 Wireless Earbuds, Bluetooth 6.0 Stereo Headphones with Noise-Cancelling Mic and LED Display, Built-in Mic for Clear Calls, Waterproof Design for Sports

(8)
$39.99
FREE delivery Tue, Nov 4
Loading...
Monster N-Lite 211 Wireless Earbuds, Bluetooth 6.0 Stereo Headphones with Powerful Bass, Built-in Noise-Cancelling Mic for Clear Calls, LED Display, 36H Playtime, IPX5 Waterproof Design for Sports

Monster N-Lite 211 Wireless Earbuds, Bluetooth 6.0 Stereo Headphones with Powerful Bass, Built-in Noise-Cancelling Mic for Clear Calls, LED Display, 36H Playtime, IPX5 Waterproof Design for Sports

(40)
$39.99
FREE delivery Thu, Nov 13
Loading...
AlloyMove Cordless Vacuum Cleaner, 550W 50KPA 70Mins Powerful Vacuum Cleaners for Home, with Anti-Tangle, LED Display Screen, Self-Standing Stick Vacuum for Hardwood Floors/Pet Hair/Carpet, A01

AlloyMove Cordless Vacuum Cleaner, 550W 50KPA 70Mins Powerful Vacuum Cleaners for Home, with Anti-Tangle, LED Display Screen, Self-Standing Stick Vacuum for Hardwood Floors/Pet Hair/Carpet, A01

(73)
$129.99
FREE delivery Fri, Feb 27
Loading...
DEVOAC Cordless Vacuum Cleaner, Ultra-Lightweight Stick Vacuum, 2200mAh Battery Up to 40mins Runtime, 6 in 1 Powerful Handheld Vacuum for Home Hard Floor Carpet Pet Hair (Green)

DEVOAC Cordless Vacuum Cleaner, Ultra-Lightweight Stick Vacuum, 2200mAh Battery Up to 40mins Runtime, 6 in 1 Powerful Handheld Vacuum for Home Hard Floor Carpet Pet Hair (Green)

(8)
$299.99
FREE delivery Fri, Sep 26
Loading...
8 Inch Solar Fan with Dual Solar Panels, 25W Powerful Solar Powered Fan for Air Circulation and Cooling in Greenhouse, Pet House, Chicken Coop, Garage, Camping, Install-Free

8 Inch Solar Fan with Dual Solar Panels, 25W Powerful Solar Powered Fan for Air Circulation and Cooling in Greenhouse, Pet House, Chicken Coop, Garage, Camping, Install-Free

(3)
$39.99
FREE delivery Sun, Aug 10
Loading...
Monster N-Lite 211 Wireless Earbuds, Bluetooth 6.0 Stereo Headphones with Powerful Bass, Built-in Noise-Cancelling Mic for Clear Calls, LED Display, 36H Playtime, IPX5 Waterproof Design for Sports

Monster N-Lite 211 Wireless Earbuds, Bluetooth 6.0 Stereo Headphones with Powerful Bass, Built-in Noise-Cancelling Mic for Clear Calls, LED Display, 36H Playtime, IPX5 Waterproof Design for Sports

(40)
$39.99
FREE delivery Thu, Nov 13
Loading...
Shcngqio 1080P Full HD Webcam with Privacy Cover, Wide Angle Lens, Active Light Correction, Plug and Play USB Webcam for PC, Desktop,Laptop (Black)

Shcngqio 1080P Full HD Webcam with Privacy Cover, Wide Angle Lens, Active Light Correction, Plug and Play USB Webcam for PC, Desktop,Laptop (Black)

(205)
$28.99
Prime
500+ bought in past month
Loading...
TRAUSI HD Webcam with Microphone, Noise Cancellation, Privacy Cover, Wide-Angle Lens, Auto Light Correction, Plug & Play USB Webcam for Laptop, Desktop, PC, Mac, Zoom, Skype, Streaming (1080P, Black)

TRAUSI HD Webcam with Microphone, Noise Cancellation, Privacy Cover, Wide-Angle Lens, Auto Light Correction, Plug & Play USB Webcam for Laptop, Desktop, PC, Mac, Zoom, Skype, Streaming (1080P, Black)

(284)
$27.99
Prime
1K+ bought in past month
Loading...
TRAUSI 1080P HD Webcam with Microphone, Noise Cancellation, Privacy Cover, Wide-Angle Lens, Auto Light Correction, Plug & Play USB Webcam for Laptop, Desktop, PC, Mac, Zoom, Skype, Streaming Black

TRAUSI 1080P HD Webcam with Microphone, Noise Cancellation, Privacy Cover, Wide-Angle Lens, Auto Light Correction, Plug & Play USB Webcam for Laptop, Desktop, PC, Mac, Zoom, Skype, Streaming Black

(205)
$28.99
FREE delivery Wed, Jul 2 on your first order
1K+ bought in past month
Loading...
Lenovo IdeaPad Laptop (15.6" FHD Anti-Glare, Intel 12th Gen i5-1235U (> i7-1165G7), 40GB RAM, 1TB SSD), for Home, Student, Webcam w/Shutter, 10-Hour Long Battery Life, Win 11 Home in S Mode

Lenovo IdeaPad Laptop (15.6" FHD Anti-Glare, Intel 12th Gen i5-1235U (> i7-1165G7), 40GB RAM, 1TB SSD), for Home, Student, Webcam w/Shutter, 10-Hour Long Battery Life, Win 11 Home in S Mode

(0)
$2,314.30
FREE delivery Jun 26 - Jul 7Only 3 left in stock.
Loading...
MSI Clutch GM08 4200 DPI, Accurate Optical Sensor, Durable Build Quality, Adjustable Weight System, Dragon Scale Design Side Grips, On The Fly DPI Changing, Optical Wired Gaming Mouse with Red LED

MSI Clutch GM08 4200 DPI, Accurate Optical Sensor, Durable Build Quality, Adjustable Weight System, Dragon Scale Design Side Grips, On The Fly DPI Changing, Optical Wired Gaming Mouse with Red LED

(1,282)
$20.99
FREE delivery Sat, Jan 3 on your first order
100+ bought in past month
Loading...
HLDIRECT 47 Inch Gaming Desk with LED Lights, Home Office Gamer Desk, Ergonomic Computer Table with Large Carbon Fiber Desktop, Computer Desk with Cup Holder & Headphone Hook for Home Office, Black

HLDIRECT 47 Inch Gaming Desk with LED Lights, Home Office Gamer Desk, Ergonomic Computer Table with Large Carbon Fiber Desktop, Computer Desk with Cup Holder & Headphone Hook for Home Office, Black

(591)
$107.99
FREE delivery Thu, Jun 26
Loading...
FOYTOKI 2 Sets Rechargeable Hand Warmers Portable with Temperature Levels Ergonomic Design for School Office

FOYTOKI 2 Sets Rechargeable Hand Warmers Portable with Temperature Levels Ergonomic Design for School Office

(0)
$14.15
FREE delivery Jul 2 - 22
Loading...
IMGadgets 47 x 24 Inches Height Adjustable Electric Standing Desk 2024, 5th Gen Quieter Motor Ergonomic Sit Stand Up Home Office Computer Desk with Height Memory Buttons, Display, 2 Headphone Holders
Best Seller

IMGadgets 47 x 24 Inches Height Adjustable Electric Standing Desk 2024, 5th Gen Quieter Motor Ergonomic Sit Stand Up Home Office Computer Desk with Height Memory Buttons, Display, 2 Headphone Holders

(438)
$169.95
FREE delivery Thu, Jun 26
200+ bought in past month
Loading...
SEVEN WARRIOR Gaming Desk with LED Lights & Power Outlets, 55" Computer Desk with Monitor Shelf, Home Office Desk with Cup Holder and Headphone Hook, Ergonomic, Carbon Fiber Surface Black

SEVEN WARRIOR Gaming Desk with LED Lights & Power Outlets, 55" Computer Desk with Monitor Shelf, Home Office Desk with Cup Holder and Headphone Hook, Ergonomic, Carbon Fiber Surface Black

(693)
$109.99
FREE delivery Thu, Jun 26