/ai-chatbot

A full-featured, hackable Next.js AI chatbot built using my chat UI components

Primary LanguageTypeScriptMIT LicenseMIT

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, OpenAI, and marcusschiesser/ui.

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


Screenshot

Features

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

You can find a test deployment at https://chat.marcusschiesser.de. Note that the chat is not working as the OpenAI key has been disabled to save costs.

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

Deploy with Vercel

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.