A simple chat app with vision using Next.js, Vercel AI SDK, and GPT-4V.
- Clone the repo:
git clone https://github.com/komzweb/nextjs-gpt4v.git
- Add your OpenAI API key:
cd nextjs-gpt4v
cp .env.local.example .env.local
Set your secret API key to OPENAI_API_KEY
in the .env.local
file.
- Install dependencies:
npm install
- Run the server:
npm run dev
Open http://localhost:3000 in your browser and try chatting with images.