GithubHelp home page GithubHelp logo

malayke / chatchat Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 754 KB

Home Page: https://chat-chat-two.vercel.app

License: GNU Affero General Public License v3.0

JavaScript 1.17% Dockerfile 0.17% TypeScript 97.20% CSS 1.47%

chatchat's Introduction

Chat Chat to unlock your next level AI conversational experience. You can use multiple APIs from OpenAI, Microsoft Azure, Claude, Cohere, Hugging Face, and more to make your AI conversation experience even richer.

LICENSE Twitter Telegram

English | 繁体中文 | 简体中文

Documentation | Common Issue

Important Notes

  • Some APIs are paid APIs, please make sure you have read and agreed to the relevant terms of service before use.
  • Some features are still under development, please submit PR or Issue.
  • The demo is for demonstration purposes only, it may retain some user data.
  • AI may generate offensive content, please use it with caution.

Preview

Interface

UI

Dashboard

Functions

fetch.mp4
search.mp4

Features

  • [x] TTS
  • [x] Chat with files
  • [x] Markdown formatting
  • [x] Support for System Prompt
  • [x] Shortcut menu (command + k)
  • [x] Wrapped API (no more proxies)
  • [x] Support for sharing conversations
  • [x] Chat history (local and cloud sync)
  • [x] Support for streaming messages (SSE)
  • [x] Plugin support (/search, /fetch)
  • [x] Support for message code syntax highlighting
  • [x] Support for OpenAI, Microsoft Azure, Claude, Cohere, Hugging Face

Roadmap

  • [ ] Dark Mode
  • [ ] Voice input
  • [ ] More API support
  • [x] Personal Dashboard
  • [ ] Multi-language support

Usage

Prerequisites

  • Any API key from OpenAI, Microsoft Azure, Claude, Cohere, Hugging Face

Environment variables

variable name description default mandatory prompt
BASE_URL Your website URL Local default http://localhost:3000 (with prefix) Yes
DATABASE_URL Postgresql database address Yes Start with postgresql:// (if not required, please fill in postgresql://user:[email protected]:port/dbname)
NEXTAUTH_URL Your website URL (without prefix) Yes
NEXTAUTH_SECRET NextAuth Secret Yes Random hash (16 bits is best)
OPENAI_API_KEY OpenAI API key No
OPENAI_API_ENDPOINT OpenAI API access point No
EMAIL_HOST SMTP Host No
EMAIL_PORT SMTP Port No
EMAIL_USERNAME SMTP username No
EMAIL_PASSWORD SMTP password No
EMAIL_FORM SMTP sending address No

Deployment

Local Deployment

git clone
cd ChatChat
yarn
yarn dev

Vercel

Deployed in Vercel

Docker

Please modify the environment variables before deployment

docker build -t chatchat .
docker run -p 3000:3000 chatchat -e BASE_URL="" -e DATABASE_URL="" -e NEXTAUTH_URL="" -e NEXTAUTH_SECRET="" -e OPENAI_API_KEY="" -e OPENAI_API_ENDPOINT="" -e EMAIL_HOST="" -e EMAIL_PORT="" -e EMAIL_USERNAME="" -e EMAIL_PASSWORD="" -e EMAIL_FORM=""

LICENSE

AGPL-3.0

Support me

Buy Me A Coffee

Technology Stack

nextjs / tailwindcss / shadcn UI


chatchat's People

Contributors

malayke avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.