Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

freeCodeCamp

Introduction to AI Engineering - OpenAI JavaScript Tutorial

via freeCodeCamp

Overview

Dive into a comprehensive tutorial on AI engineering using JavaScript and OpenAI's GPT-4 and DALL·E APIs. Learn to build and deploy AI-powered web applications, starting with the basics and progressing to advanced topics. Explore API integration, prompt engineering, token management, and model fine-tuning. Discover how to create images using DALL·E 3 and implement AI safety best practices. Master secure deployment strategies with Cloudflare, including worker creation, API connections, CORS handling, and error management. Gain hands-on experience in fetching stock data, pushing to GitHub, and deploying with Cloudflare Pages. By the end, acquire the skills to develop impressive AI-driven portfolio projects that showcase your expertise to potential employers.

Syllabus

AI Engineering basics
The code so far
Polygon API sign-up & key
Get an OpenAI API Key
Overview of how the API works
An API call: OpenAI dependency
An API call: Instance and model
An API call: The messages array
A quick word about models
Prompt Engineering and a challenge
Adding AI to the App
Tokens
Playground
Temperature
The "Few Shot" Approach
Adding Examples
Stop Sequence
Frequency and Presence Penalties
Fine-tuning
Creating Images with the DALL·E 3 API
Intro to AI Safety
Safety Best Practices
You made it!
Learn secure & robust deployment strategies
Create a Cloudflare worker
Connect your worker to OpenAI
Update client side data fetching
Handle CORS and preflight requests
OpenAI API requests & responses
Create an AI Gateway
Error handling
Create & deploy the Polygon API worker
Fetch the stock data
Download files and push to GitHub
Deploy your site with Cloudflare Pages
Custom domains with Cloudflare
Recap & next steps

Taught by

freeCodeCamp.org

Reviews

Start your review of Introduction to AI Engineering - OpenAI JavaScript Tutorial

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.