Simple demo app demonstrating use of OpenAI Assistants API in Next.js and Vercel AI SDK with streaming, tool use (code interpreter and file search), and function calling.
- Framework: Next.js 14 (App Router)
- Chat functionality: Vercel AI SDK
- Assistant: OpenAI Assistant API
- Styling: Tailwind CSS
Run the following command to clone the repo:
git clone https://github.com/DraganAleksic99/openai-assistant.git
cd openai-assistant
npm i
cp .env.local.example .env.local
npm run dev
You can now visit http://localhost:3000.