This is a chat project that uses Next.js 15 (App Router), Vercel AI SDK, and OpenAI to create an interactive chat interface.
- Node.js 18+ installed
- An OpenAI account with API access
- An OpenAI API key
- Clone the repository:
git clone [REPOSITORY_URL]
cd chat-ai- Install dependencies:
npm install- Create a
.env.localfile in the project root and add your OpenAI key:
OPENAI_API_KEY=your_api_key_here- Start the development server:
npm run dev- Open http://localhost:3000 in your browser
- Next.js 15 (App Router)
- Vercel AI SDK
- OpenAI API
- Tailwind CSS
- Shadcn/ui
- Make sure to keep your API key secure and never share it
- The project uses OpenAI's GPT model to generate responses
- The interface is built with Shadcn/ui components for a modern experience