🚀 Next Generation AI One-Stop Internationalization Solution. 🚀 下一代 AI 一站式 B/C 端解决方案,支持 OpenAI,Midjourney,Claude,讯飞星火,Stable Diffusion,DALL·E,ChatGLM,通义千问,腾讯混元,360 智脑,百川 AI,火山方舟,新必应,Gemini,Moonshot 等模型,支持对话分享,自定义预设,云端同步,模型市场,支持弹性计费和订阅计划模式,支持图片解析,支持联网搜索,支持模型缓存,丰富美观的后台管理与仪表盘数据统计。
Go to file
2023-10-10 06:58:27 +08:00
.github/workflows add build workflow 2023-08-15 10:02:57 +08:00
adapter add zhipuai models: chatglm_pro, chatglm_std, chatglm_lite 2023-10-10 06:53:44 +08:00
addition update frontend api 2023-09-29 19:33:44 +08:00
app add zhipuai models: chatglm_pro, chatglm_std, chatglm_lite 2023-10-10 06:53:44 +08:00
auth add zhipuai models: chatglm_pro, chatglm_std, chatglm_lite 2023-10-10 06:53:44 +08:00
connection add apikey auth middleware and black list 2023-10-02 15:13:37 +08:00
globals add zhipuai models: chatglm_pro, chatglm_std, chatglm_lite 2023-10-10 06:53:44 +08:00
manager add zhipuai models: chatglm_pro, chatglm_std, chatglm_lite 2023-10-10 06:53:44 +08:00
middleware add zhipuai models: chatglm_pro, chatglm_std, chatglm_lite 2023-10-10 06:53:44 +08:00
screenshot add file upload feature and table 2023-09-13 20:12:02 +08:00
utils fix import cycle 2023-10-10 06:58:27 +08:00
.gitignore v3 restruct 2023-09-29 17:25:27 +08:00
config.example.yaml update docs 2023-09-24 11:40:40 +08:00
go.mod add stable claude model 2023-10-01 10:15:29 +08:00
go.sum add stable claude model 2023-10-01 10:15:29 +08:00
LICENSE Initial commit 2023-07-18 02:09:58 +08:00
main.go fix import cycle 2023-09-29 18:12:40 +08:00
qodana.yaml update gpt-4-32k adapter 2023-09-23 22:38:26 +08:00
README.md update frontend 2023-10-05 21:33:36 +08:00

chatnio

Chat Nio

👋 轻量级 ChatGPT 聊天平台

👋 Lightweight ChatGPT Chat Platform

code-stats

📝 功能 | Features

  1. AI 联网功能
    • AI online searching service
  2. 多账户均衡负载
    • Multi-account load balancing
  3. 🎉 HTTP2 Stream 实时响应功能
    • 🎉 HTTP2 Stream real-time response function
  4. 🚀 节流和鉴权体系
    • 🚀 Throttling and authentication system
  5. 🌈 丰富的聊天功能 (代码高亮latex支持卡片生成右键菜单)
    • 🌈 Rich chat features (code highlight, latex support, card generation, right-click menu)
  6. 🎨 多端适配
    • 🎨 Multi-device adaptation
  7. 📦 缓存系统
    • 📦 Cache system
  8. 🎈 对话记忆功能
    • 🎈 Conversation memorization
  9. 🎁 图片生成功能
    • 🎁 Image generation
  10. 🔔 PWA 应用
    • 🔔 PWA application
  11. Token 计费系统
    • Token billing system
  12. 📚 逆向工程模型支持
    • 📚 Reverse engineering model support
  13. 🌏 国际化支持
    • 🌏 Internationalization support
      • 🇨🇳 简体中文
      • 🇺🇸 English
      • 🇷🇺 Русский
  14. 🍎 主题切换
    • 🍎 Theme switching
  15. 🥪 Key 中转服务
    • 🥪 Key relay service
  16. 🔨 多模型支持
    • 🔨 Multi-model support

🔨 模型 | Models

  • ChatGPT

    • GPT-3.5-Turbo (0613, 0301)
    • GPT-3.5-Turbo-16k (0613, 0301)
    • GPT-3.5-Reverse (text-davincci-002-render-sha, text-davincci-002-render-paid)
    • GPT-4 (0314, 0613)
    • GPT-4-32k (0314, 0613)
    • GPT-4-Reverse (gpt-4)
    • DALL-E
  • Claude

    • Slack-Claude (unstable)
    • Claude-2
    • Claude-2-100k
  • SparkDesk 讯飞星火

    • v1.5
    • v2.0
  • Google PaLM2

    • Chat
    • Text
    • Fine-tune
    • Embedding
  • New Bing (unstable)

    • Creative
    • Balanced
    • Precise
  • More models are under development...

📚 预览 | Screenshots

landspace feature latex shop subscription

扩展 | Extension

card

![card](https://i.chatnio.net/?message=hi)

card

![card](https://i.chatnio.net/?message=itab起始页介绍&theme=dark)
  • message: 内容
  • theme: 主题
    • dark: 暗色
    • light: 亮色 (默认)
  • web 是否开启联网版功能 (默认开启)

📦 部署 | Deploy

git clone https://github.com/zmh-program/chatnio.git
cd chatnio

go build -o chatnio
cd app
npm install
npm run build

🔨 配置 | Config

debug: true
server:
  port: 8094

redis:
  host: localhost
  port: 6379

openai:
  anonymous: sk-xxxxxx|sk-xxxxxx|sk-xxxxxx
  anonymous_endpoint: https://api.openai.com/v1
  
  user: sk-xxxxxx|sk-xxxxxx|sk-xxxxxx
  user_endpoint: https://api.openai.com/v1
  
  image: sk-xxxxxx|sk-xxxxxx|sk-xxxxxx
  image_endpoint: https://api.openai.com/v1
  
  gpt4: sk-xxxxxx|sk-xxxxxx|sk-xxxxxx
  gpt4_endpoint: https://api.openai.com/v1

  reverse: gpt-4  # cf reverse
  pro: ey...|ey...|ey...
  pro_endpoint: .../imitate/v1


mysql:
  host: localhost
  port: 3306
  user: root
  password: ...

  db: chatnio

secret: ...
auth:
  access: ...
  salt: ...
  sign: ...

📦 技术栈 | Tech Stack

  • 前端: React + Radix UI + Tailwind CSS + Redux
  • 后端: Golang + Gin + Redis + MySQL + Tiktoken (OpenAI)
  • 应用技术: PWA + HTTP2 + WebSocket + Stream Buffer

🎈 感谢 | Thanks

感谢这些开源项目提供的思路:

🎃 开发团队 | Team

📄 开源协议 | License

Apache License 2.0