Build AI Apps with ChatGPT, DALL-E, and GPT-4 โ€“ Full Course for Beginners

freeCodeCamp.org โ€ข May 30, 2023
Video Thumbnail
freeCodeCamp.org Logo

freeCodeCamp.org

View Channel

About

Learn math, programming, and computer science for free. A 501(c)(3) tax-exempt charity. We also run a free learning interactive platform at freecodecamp.org

Video Description

This course will teach you how to build AI-powered apps with the ChatGPT, Dall-E and GPT-4 APIs. Go here to try the interactive browser-version: https://scrimba.com/learn/buildaiapps โœ๏ธ This course was created by Tom Chant, a teacher at Scrimba. If you have any feedback to Tom, please reach out to him on Twitter here: https://twitter.com/tpchant Also, follow Scrimba on YouTube here: https://www.youtube.com/c/Scrimba We recommend that you learn basic HTML, CSS, and JavaScript before taking this course. Here are two free courses that will get you up to speed: ๐Ÿ”— HTML & CSS: https://scrimba.com/learn/htmlandcss ๐Ÿ”— JavaScript: https://scrimba.com/learn/learnjavascript โญ๏ธ Code โญ๏ธ ๐Ÿ”— Download via Scrimba: https://scrimba.com/learn/buildaiapps ๐Ÿ’ซ Links mentioned in course: ๐Ÿ”— GPT-4 waiting list: https://scrimba.com/links/gpt4-waitlist-openai ๐Ÿ”— OpenAI Home: https://scrimba.com/links/openai ๐Ÿ”— OpenAI Docs: https://scrimba.com/links/openai-docs-intro ๐Ÿ”— OpenAI Completions endpoint docs: https://scrimba.com/links/openai-completions-docs ๐Ÿ”— GPTTools.com model comparison: https://scrimba.com/links/open-ai-comparison-tool ๐Ÿ”— OpenAI Playground: https://scrimba.com/links/open-ai-playground ๐Ÿ”— Dall-E: https://scrimba.com/links/dall-e-openai ๐Ÿ”— OpenAI endpoint compatibility table: https://scrimba.com/links/chatgpt-endpoint-compatibility ๐Ÿ”— GPT-4 Chatbot conversation object format: https://scrimba.com/links/chatgpt-object-format ๐Ÿ”— Data used to fine-tune We-Wingit Chatbot: https://scrimba.com/links/we-wingit-data-csv ๐Ÿ”— Firebase home: https://scrimba.com/links/firebase-home ๐Ÿ”— Firebase .val() method: https://scrimba.com/links/firebase-val-method ๐Ÿ”— Object.values MDN: https://scrimba.com/links/object-dot-values ๐Ÿ”— Netlify: https://scrimba.com/links/netlify-home โญ๏ธ Contents โญ๏ธ 0:00:00 Introduction 0:01:19 Course Intro 0:04:56 MoviePitch intro 0:07:53 The Boilerplate 0:11:26 Getting an OpenAI API Key 0:13:32 Getting info for fetch request 0:15:14 Building an OpenAI fetch request 0:20:23 The first AI fetch request 0:26:41 Models 0:30:18 Tools 0:34:03 Refactor to use dependency l - env variable 0:38:11 Refactor to use dependency ll - The dependency 0:41:07 Refactor to use dependency lll - update fetchReply 0:44:40 Take out of Scrimba 0:46:45 Personalising the message 0:53:04 Tokens 0:57:09 fetchSynopsis 1:03:44 Aside - few shot approach 1:10:45 Aside - few shot approach ll 1:13:42 Refactor fetchSynopsis 1:21:00 Architecture 1:23:23 Title and Temperature 1:31:52 Reaching for the stars 1:37:52 Aside - createImage 1:46:56 fetchImagePrompt 1:54:21 Displaying the image and finishing off the UX 2:03:16 OutroKnowItAll: GPT-4 Chatbox2:06:47 KnowItAll Intro 2:09:40 Starter Code 2:13:10 Aside: How ChatGPT models work for chatbots 2:18:24 Conversation and instructions 2:20:21 Add user input to conversation array 2:23:06 The createChatCompletion endpoint 2:24:38 The model and object 2:28:46 Render the output, update the array 2:33:37 Aside: Theory: Frequency and presence penalties 2:37:07 presence_penalty practice 2:38:36 frequency_penalty practice 2:44:54 The chatbotโ€™s personality 2:47:06 Firebase Intro 2:48:27 Firebase Account and database set up 2:50:43 Firebase dependency and database set up 2:55:53 Push method and instructions object 2:58:33 Update fetch Reply 3:02:24 Update fetchReply 2 3:04:49 Update the database 3:07:19 Render the conversation from the DB 3:12:02 The โ€œstart overโ€ button 3:15:20 OutroWe-Wingit: Fine-tuned chatbot3:17:28 Intro to fine-tuning 3:20:04 Convert the Chatbot to We-Wingit 3:22:15 An Overview of the AI 3:23:52 Data for fine-tuning 3:26:34 The data weโ€™re using 3:30:05 CLI 1 - Setting up the environment 3:33:03 CLI 2 - Data Preparation Tool 3:37:03 CLI 3 - Tuning the model 3:38:55 Updating the JS 1 3:41:33 Updating the JS 2 3:44:15 Updating the JS 3 3:47:01 The Separator 3:52:32 Aside - Stop Sequence 3:55:50 Adding the stop sequence 4:00:36 n_epochs 4:07:24 Intro to deployment 4:09:46 Download and GitHub 4:12:07 Netlify sign-up 4:13:56 Add Netlify env var 4:15:54 Netlify CLI 4:17:30 Netlify serverless function 1 4:19:52 Update fetchReply 4:24:28 Serverless function 2 4:27:30 Serverless function 3 4:29:21 Serverless function 4 4:32:32 Outro ๐ŸŽ‰ Thanks to our Champion and Sponsor supporters: ๐Ÿ‘พ davthecoder ๐Ÿ‘พ jedi-or-sith ๐Ÿ‘พ ๅ—ๅฎฎๅƒๅฝฑ ๐Ÿ‘พ Agustรญn Kussrow ๐Ÿ‘พ Nattira Maneerat ๐Ÿ‘พ Heather Wcislo ๐Ÿ‘พ Serhiy Kalinets ๐Ÿ‘พ Justin Hual ๐Ÿ‘พ Otis Morgan -- Learn to code for free and get a developer job: https://www.freecodecamp.org Read hundreds of articles on programming: https://freecodecamp.org/news โค๏ธ Support for this channel comes from our friends at Scrimba โ€“ the coding platform that's reinvented interactive learning: https://scrimba.com/freecodecamp

You May Also Like

Transform Your Study Space

AI-recommended products based on this video

Loading...
Funny Cute Mouse Pad with Wrist Rest, Dumpster on Fire Ergonomic Mouse Pads Wrist Support for Desk, Mousepad for Wireless Mouse Gaming Laptop Work Home Desk Accessories Office Supplies Decor

Funny Cute Mouse Pad with Wrist Rest, Dumpster on Fire Ergonomic Mouse Pads Wrist Support for Desk, Mousepad for Wireless Mouse Gaming Laptop Work Home Desk Accessories Office Supplies Decor

(1,045)
7.99
PrimeFREE delivery Saturday, June 14 on orders shipped by Amazon over $35
500+ bought in past month
Loading...
Lenovo V15 Laptop | 15.6" FHD Anti-Glare Display | AMD Ryzen 7 7730U | 40GB RAM | 1TB PCIe SSD | HDMI | Type-C | Webcam | Wi-Fi | THUNDEROBOT Wireless Ergonomic Mouse | Windows 11 Pro | Black

Lenovo V15 Laptop | 15.6" FHD Anti-Glare Display | AMD Ryzen 7 7730U | 40GB RAM | 1TB PCIe SSD | HDMI | Type-C | Webcam | Wi-Fi | THUNDEROBOT Wireless Ergonomic Mouse | Windows 11 Pro | Black

(26)
$649.00$636.02
FREE delivery Jun 18 - 23
Loading...
acer Nitro V 15 Gaming Laptop, Intel i9-13900H Up to 5.4GHz, GeForce RTX 4060, 15.6" 144 Hz IPS Display, 64 GB DDR5, 4 TB SSD, Wi-Fi 6, Backlit Keyboard, Windows 11 Pro, Gaming Mouse, 256GB UFD

acer Nitro V 15 Gaming Laptop, Intel i9-13900H Up to 5.4GHz, GeForce RTX 4060, 15.6" 144 Hz IPS Display, 64 GB DDR5, 4 TB SSD, Wi-Fi 6, Backlit Keyboard, Windows 11 Pro, Gaming Mouse, 256GB UFD

(2,753)
$1,899.99
FREE delivery Tomorrow, Jun 12Arrives before Father's Day
Loading...
Macally Small Wired Keyboard for Mac and Windows - 78 Scissor Switch Keys Compatible Apple Keyboard - USB Mini Keyboard That Saves Space and Looks Great - Plug and Play Wired Mac Keyboard - Aluminum

Macally Small Wired Keyboard for Mac and Windows - 78 Scissor Switch Keys Compatible Apple Keyboard - USB Mini Keyboard That Saves Space and Looks Great - Plug and Play Wired Mac Keyboard - Aluminum

(4,883)
27.99
PrimeFREE delivery Saturday, June 14 on orders shipped by Amazon over $35
200+ bought in past month
Loading...
Angetube Streaming 1080P HD Webcam Built in Adjustable Ring Light and Mic. Advanced autofocus AF Web Camera for Google Meet Gamer Facebook YouTube Streamer

Angetube Streaming 1080P HD Webcam Built in Adjustable Ring Light and Mic. Advanced autofocus AF Web Camera for Google Meet Gamer Facebook YouTube Streamer

(6,856)
$40.70
FREE delivery Fri, Oct 10
50+ bought in past month
Loading...
Bose QuietComfort Bluetooth Headphones, Wireless Headphones with Active Over Ear Noise Cancelling and Mic, Deep Bass, Up to 24 Hours of Playtime, White Smoke

Bose QuietComfort Bluetooth Headphones, Wireless Headphones with Active Over Ear Noise Cancelling and Mic, Deep Bass, Up to 24 Hours of Playtime, White Smoke

(10,961)
249.00
FREE delivery Wednesday, June 11.
1K+ bought in past month
Loading...
Amazon Echo Show 8 (newest model), With Spatial Audio, Smart Home Hub, and Alexa, Charcoal

Amazon Echo Show 8 (newest model), With Spatial Audio, Smart Home Hub, and Alexa, Charcoal

(21,817)
149.99
PrimeFREE delivery Saturday, June 14
9K+ bought in past month
Loading...
UGREEN Revodok Pro 210 Docking Station 10 in 1 USB C Dock Dual HDMI 4K@60Hz Single 8K@30Hz 100W PD 5Gbps USB C and USB A Data Ports Gigabit Ethernet, SD/TF Card Reader USB Hub Compatible for HP, Dell

UGREEN Revodok Pro 210 Docking Station 10 in 1 USB C Dock Dual HDMI 4K@60Hz Single 8K@30Hz 100W PD 5Gbps USB C and USB A Data Ports Gigabit Ethernet, SD/TF Card Reader USB Hub Compatible for HP, Dell

(1,701)
39.99
PrimeFREE delivery Saturday, June 14
100+ bought in past month