Skip to content

shiyuhang0/mask-chatbot

Repository files navigation

AI Chatbot - Make everyone a prompt engineer

This is an open source AI Chatbot with awesome prompts powered by TiDB Serverless.

This project is built based on ai-chatbot. Thanks for the great work!

Features

  • Awesome prompts for you to chat with AI.
  • Share your chat powered by TiDB Serverless.
  • Isolated chat (and the chat history) from different users.

How it works

Auth

Use GitHub OAuth App and next-auth GitHub provider to authenticate users.

Chat & Prompts

The chat is powered by ChatGPT. Vercel AI SDK is used for streaming chat UI.

The prompts come from awesome prompts.

Storage

Chat history, prompts and userID are stored in a TiDB Serverless. This provides:

  • Share your chat with others and the chat history will be kept forever.
  • Isolated chat from different users.
  • Prompts management

Deployment

The project can be deployed on Vercel.

Deploy Your Own

Deploy with Vercel

Environment Variables

Here are the environment variables you need to set:

If you skip the Vercel TiDB integration, you need add the following environment variables by yourself:

  • TIDB_HOST: The host of your TiDB Serverless
  • TIDB_USER: The user of your TiDB Serverless
  • TIDB_PASSWORD: The password of your TiDB Serverless