Skip to content
/ chat Public
forked from swuecho/chat

gpt chat web app for teams, sass or self hosting, support openai, claude model

Notifications You must be signed in to change notification settings

wang3y2/chat

 
 

Repository files navigation

Demo

video.webm

Screenshot 2023-04-12 at 12 43 31

规则

  • 第一个消息是系统消息(prompt)
  • 上下文默认附带最新创建的10条消息
  • 第一个注册的用户是管理员
  • 默认限流 100 chatGPT call /10分钟 (OPENAI_RATELIMIT=100)
  • 支持OPEN AI, Claude 模型 免费申请链接

如何部署

参考 docker-compose.yaml

Deploy on Railway

然后配置环境变量就可以了.

PORT=8080
OPENAI_RATELIMITE=0

别的两个 api key 有就填.

image

部署之后, 注册用户, 第一个用户是管理员, 然后到 https://$hostname/static/#/admin/user, 设置 ratelimit, 公网部署, 只对信任的email 增加 ratelimit, 这样即使有人注册, 也是不能用的.

image

致谢

LICENCE: MIT

How to Use

  • The first message is a system message (prompt)
  • by default, the latest 10 messages are context
  • First user is superuser.
  • 100 chatgpt api call / 10 mins (OPENAI_RATELIMIT=100)
  • Support OPEN AI, Claude model free application link

How to Deploy

Refer to docker-compose.yaml

Deploy on Railway

Then configure the environment variables.

PORT=8080
OPENAI_RATELIMITE=0

Fill in the other two keys if you have them.

image

After deployment, registering users, the first user is an administrator, then go to https://$hostname/static/#/admin/user to set rate limiting. Public deployment, only adds rate limiting to trusted emails, so even if someone registers, it will not be available.

image

This helps ensure only authorized users can access the deployed system by limiting registration to trusted emails and enabling rate limiting controls.

Acknowledgments

About

gpt chat web app for teams, sass or self hosting, support openai, claude model

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 36.8%
  • Vue 29.4%
  • TypeScript 20.7%
  • Less 6.9%
  • Python 3.4%
  • HTML 2.2%
  • Other 0.6%