Build an AI App

Project Setup

In this session, we'll be exploring the fundamentals of the Vercel AI SDK.

Let's start by setting up our project.

Clone the following repository locally.

git clone https://github.com/nicoalbanese/build-an-ai-app-starter-dec-24.git
cd build-an-ai-app-starter-dec-24

Install packages using your preferred package manager.

npm install

Copy the .env.example and rename it to .env.

cp .env.example .env

Add your OpenAI API Key to your .env file.

OPENAI_API_KEY="sk-*****-*************"

Run the following command in your terminal.

npx tsx env-check.ts

You should see your OpenAI API Key outputted to the terminal.

Great! You are now ready to go!