Skip to content

A Next.js-based AI chatbot application that leverages the Vercel AI SDK and OpenAI's GPT-4 vision model.

License

Notifications You must be signed in to change notification settings

super999christ/gpt4-chatbot

Repository files navigation

Next.js 14 and App Router-ready GPT4 Vision chatbot.

GPT4 Vision Chatbot

An open-source AI chatbot app template for GPT4 Vision built with Next.js, the Vercel AI SDK and OpenAI.

Features · Model Providers · Deploy Your Own · Running locally ·


Screenshot

Features

  • Next.js App Router
  • React Server Components (RSCs), Suspense, and Server Actions
  • Vercel AI SDK for streaming chat UI
  • Support for OpenAI (default), Anthropic, Cohere, Hugging Face, or custom AI chat models and/or LangChain
  • Chat UI

Model Providers

This template ships with OpenAI gpt-4-vision-preview as the default. Once Vercel AI SDK supports other vision models, it's easy to update this template.

Deploy Your Own

Using your own OpenAI key, you can deploy your own version of the Next.js AI Chatbot to Vercel with one click:

Running locally

You will need to use the environment variables defined in .env.example to run this AI Chatbot. It's recommended you use Vercel Environment Variables for this, but a .env file is all that is necessary.

Note: You should not commit your .env file or it will expose secrets that will allow others to control access to your various OpenAI and authentication provider accounts.

pnpm install
pnpm dev

Your app template should now be running on localhost:3000.

About

A Next.js-based AI chatbot application that leverages the Vercel AI SDK and OpenAI's GPT-4 vision model.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published