Skip to content

A simple chat app with vision using Next.js, Vercel AI SDK, and GPT-4V.

Notifications You must be signed in to change notification settings

komzweb/nextjs-gpt4v

Repository files navigation

Next GPT-4V

A simple chat app with vision using Next.js, Vercel AI SDK, and GPT-4V.

Next GPT-4V

Setup

  1. Clone the repo:
git clone https://github.com/komzweb/nextjs-gpt4v.git
  1. 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.

  1. Install dependencies:
npm install
  1. Run the server:
npm run dev

Open http://localhost:3000 in your browser and try chatting with images.