This is a simple AI chat to experiment with OpenAI + Vercel SDK
The rest of the stack consists of: React, Tailwind, Next.js and Typescript.
Screen.Recording.2023-08-09.at.20.16.03.mov
-
Create a
.env.local
file in the root of your project and add your Open AI key underOPENAI_API_KEY
.OPENAI_API_KEY="<your open ai key>"
-
Run the development server:
npm run dev # or yarn dev # or pnpm dev
-
Open http://localhost:3000 with your browser to see the result.