Introduction to AI Engineering - OpenAI JavaScript Tutorial
via freeCodeCamp
Overview
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