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.localSet your secret API key to OPENAI_API_KEY in the .env.local file.
- Install dependencies:
npm install- Run the server:
npm run devOpen http://localhost:3000 in your browser and try chatting with images.
