chuanhuchatgpt

GUI for ChatGPT API and many LLMs. Supports agents, file-based QA, GPT finetuning and query with web search. All with a neat UI.

https://github.com/gaizhenbiao/chuanhuchatgpt

Science Score: 54.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
    2 of 52 committers (3.8%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (6.8%) to scientific vocabulary

Keywords

chatbot chatglm chatgpt-api claude dalle3 ernie gemini gemma inspurai llama midjourney minimax moss ollama qwen spark stablelm
Last synced: 6 months ago · JSON representation ·

Repository

GUI for ChatGPT API and many LLMs. Supports agents, file-based QA, GPT finetuning and query with web search. All with a neat UI.

Basic Info
Statistics
  • Stars: 15,437
  • Watchers: 86
  • Forks: 2,273
  • Open Issues: 124
  • Releases: 27
Topics
chatbot chatglm chatgpt-api claude dalle3 ernie gemini gemma inspurai llama midjourney minimax moss ollama qwen spark stablelm
Created almost 3 years ago · Last pushed 6 months ago
Metadata Files
Readme Contributing License Citation

README.md

简体中文 | English | 日本語 | Russian | 한국어

川虎 Chat 🐯 Chuanhu Chat

Logo

为ChatGPT等多种LLM提供了一个轻快好用的Web图形界面和众多附加功能

Tests Passing GitHub Contributors GitHub pull requests

支持 DeepSeek R1 & GPT 4 · 基于文件问答 · LLM本地部署 · 联网搜索 · Agent 助理 · 支持 Fine-tune

视频教程 · 2.0介绍视频 || 在线体验 · 一键部署

📢 新增:现已支持 GPT-5(含 GPT-5、GPT-5-mini、GPT-5-nano;400k 上下文、最多 128k 输出)。

Video Title

目录

| 支持模型 | 使用技巧 | 安装方式 | 常见问题 | 给作者买可乐🥤 | 加入Telegram群组 | | --- | --- | --- | --- | --- | --- |

✨ 5.0 重磅更新!

ChuanhuChat5更新

New! 全新的用户界面!精致得不像 Gradio,甚至有毛玻璃效果!

New! 适配了移动端(包括全面屏手机的挖孔/刘海),层级更加清晰。

New! 历史记录移到左侧,使用更加方便。并且支持搜索(支持正则)、删除、重命名。

New! 现在可以让大模型自动命名历史记录(需在设置或配置文件中开启)。

New! 现在可以将 川虎Chat 作为 PWA 应用程序安装,体验更加原生!支持 Chrome/Edge/Safari 等浏览器。

New! 图标适配各个平台,看起来更舒服。

New! 支持 Finetune(微调) GPT 3.5!

支持模型

| API 调用模型 | 备注 | 本地部署模型 | 备注 | | :---: | --- | :---: | --- | | ChatGPT(GPT-5、GPT-4、GPT-4o、o1) | 支持微调 gpt-3.5 | ChatGLM (ChatGLM2) (ChatGLM3) || | Azure OpenAI | | LLaMA | 支持 Lora 模型 | | Google Gemini Pro | | StableLM || | 讯飞星火认知大模型 | | MOSS || | Inspur Yuan 1.0 | | 通义千问 || | MiniMax ||DeepSeek|| | XMChat | 不支持流式传输||| | Midjourney | 不支持流式传输||| | Claude | ✨ 现已支持Claude 3 Opus、Sonnet,Haiku将会在推出后的第一时间支持||| | DALL·E 3 ||||

使用技巧

💪 强力功能

  • 川虎助理:类似 AutoGPT,全自动解决你的问题;
  • 在线搜索:ChatGPT 的数据太旧?给 LLM 插上网络的翅膀;
  • 知识库:让 ChatGPT 帮你量子速读!根据文件回答问题。
  • 本地部署LLM:一键部署,获取属于你自己的大语言模型。
  • GPT 3.5微调:支持微调 GPT 3.5,让 ChatGPT 更加个性化。
  • 自定义模型:灵活地自定义模型,例如对接本地推理服务。

🤖 System Prompt

  • 通过 System Prompt 设定前提条件,可以很有效地进行角色扮演;
  • 川虎Chat 预设了Prompt模板,点击加载Prompt模板,先选择 Prompt 模板集合,然后在下方选择想要的 Prompt。

💬 基础对话

  • 如果回答不满意,可以使用 重新生成 按钮再试一次,或者直接 删除这轮对话;
  • 输入框支持换行,按 Shift + Enter即可;
  • 在输入框按 方向键,可以在发送记录中快速切换;
  • 每次新建一个对话太麻烦,试试 单论对话 功能;
  • 回答气泡旁边的小按钮,不仅能 一键复制,还能 查看Markdown原文
  • 指定回答语言,让 ChatGPT 固定以某种语言回答。

📜 对话历史

  • 对话历史记录会被自动保存,不用担心问完之后找不到了;
  • 多用户历史记录隔离,除了你都看不到;
  • 重命名历史记录,方便日后查找;
  • New! 魔法般自动命名历史记录,让 LLM 理解对话内容,帮你自动为历史记录命名!
  • New! 搜索历史记录,支持正则表达式!

🖼️ 小而美的体验

  • 自研 Small-and-Beautiful 主题,带给你小而美的体验;
  • 自动亮暗色切换,给你从早到晚的舒适体验;
  • 完美渲染 LaTeX / 表格 / 代码块,支持代码高亮;
  • New! 非线性动画、毛玻璃效果,精致得不像 Gradio!
  • New! 适配 Windows / macOS / Linux / iOS / Android,从图标到全面屏适配,给你最合适的体验!
  • New! 支持以 PWA应用程序 安装,体验更加原生!

👨‍💻 极客功能

  • New! 支持 Fine-tune(微调)gpt-3.5!
  • 大量 LLM 参数可调;
  • 支持更换 api-host;
  • 支持自定义代理;
  • 支持多 api-key 负载均衡。

⚒️ 部署相关

  • 部署到服务器:在 config.json 中设置 "server_name": "0.0.0.0", "server_port": <你的端口号>,
  • 获取公共链接:在 config.json 中设置 "share": true,。注意程序必须在运行,才能通过公共链接访问。
  • 在Hugging Face上使用:建议在右上角 复制Space 再使用,这样App反应可能会快一点。

快速上手

在终端执行以下命令:

shell git clone https://github.com/GaiZhenbiao/ChuanhuChatGPT.git cd ChuanhuChatGPT pip install -r requirements.txt

然后,在项目文件夹中复制一份 config_example.json,并将其重命名为 config.json,在其中填入 API-Key 等设置。

shell python ChuanhuChatbot.py

一个浏览器窗口将会自动打开,此时您将可以使用 川虎Chat 与ChatGPT或其他模型进行对话。

Note

具体详尽的安装教程和使用教程请查看本项目的wiki页面

疑难杂症解决

在遇到各种问题查阅相关信息前,您可以先尝试 手动拉取本项目的最新更改1更新依赖库2,然后重试。步骤为:

  1. 点击网页上的 Download ZIP 按钮,下载最新代码并解压覆盖,或 shell git pull https://github.com/GaiZhenbiao/ChuanhuChatGPT.git main -f
  2. 尝试再次安装依赖(可能本项目引入了新的依赖) pip install -r requirements.txt

很多时候,这样就可以解决问题。

如果问题仍然存在,请查阅该页面:常见问题

该页面列出了几乎所有您可能遇到的各种问题,包括如何配置代理,以及遇到问题后您该采取的措施,请务必认真阅读

了解更多

若需了解更多信息,请查看我们的 wiki

Starchart

Star History Chart

Contributors

捐款

🐯如果觉得这个软件对你有所帮助,欢迎请作者喝可乐、喝咖啡~

联系作者:请去我的bilibili账号私信我。

Buy Me A Coffee

image

Owner

  • Name: Chuan Hu
  • Login: GaiZhenbiao
  • Kind: user
  • Location: Hangzhou
  • Company: HDU

Beginner coder. Interested in AI, particularly NeRF and NeRF-based works.

Citation (CITATION.cff)

cff-version: 1.2.0
title: Chuanhu Chat
message: >-
  If you use this software, please cite it using these
  metadata.
type: software
authors:
  - given-names: Chuanhu
    orcid: https://orcid.org/0000-0001-8954-8598
  - given-names: MZhao
    orcid: https://orcid.org/0000-0003-2298-6213
  - given-names: Keldos
    orcid: https://orcid.org/0009-0005-0357-272X
repository-code: 'https://github.com/GaiZhenbiao/ChuanhuChatGPT'
url: 'https://github.com/GaiZhenbiao/ChuanhuChatGPT'
abstract: This software provides a light and easy-to-use interface for ChatGPT API and many LLMs.
license: GPL-3.0
commit: c6c08bc62ef80e37c8be52f65f9b6051a7eea1fa
version: '20230709'
date-released: '2023-07-09'

GitHub Events

Total
  • Create event: 2
  • Commit comment event: 1
  • Release event: 1
  • Issues event: 13
  • Watch event: 522
  • Issue comment event: 31
  • Push event: 6
  • Pull request event: 2
  • Gollum event: 1
  • Fork event: 61
Last Year
  • Create event: 2
  • Commit comment event: 1
  • Release event: 1
  • Issues event: 13
  • Watch event: 522
  • Issue comment event: 31
  • Push event: 6
  • Pull request event: 2
  • Gollum event: 1
  • Fork event: 61

Committers

Last synced: 6 months ago

All Time
  • Total Commits: 1,194
  • Total Committers: 52
  • Avg Commits per committer: 22.962
  • Development Distribution Score (DDS): 0.413
Past Year
  • Commits: 45
  • Committers: 5
  • Avg Commits per committer: 9.0
  • Development Distribution Score (DDS): 0.289
Top Committers
Name Email Commits
Tuchuanhuhuhu g****g@h****n 701
Keldos hi@k****e 312
mzlegion m****o@g****m 82
iskoldt-X 9****X 14
Philo-Sophia x****a@g****m 7
nil q****5@q****m 6
2p990i9hpral 3****l 5
Feliciano Long n****k 5
Xun Gong g****d@g****m 4
XiaoRan 8****e 4
Tusik i****e@b****x 3
ina111 i****b@g****m 3
Simon Mau 1****o 3
binary-husky q****u@o****m 2
Xudong Liu k****e@g****m 2
Siwei Chen me@c****e 2
JohnZ03 4****3 2
xier 4****5@q****m 2
PedroGruvhagen 1****n 2
IdlessChaye 1****4@q****m 1
LXR520 9****r 1
Gary 5****X 1
Di c****c@u****u 1
Mio 1****8@q****m 1
NME! t****g@g****m 1
guest g****t@p****n 1
花菜 l****8 1
xzajyjs x****6@g****m 1
toantranct 3****t 1
stingshen s****n@1****m 1
and 22 more...
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 109
  • Total pull requests: 40
  • Average time to close issues: 14 days
  • Average time to close pull requests: 7 days
  • Total issue authors: 94
  • Total pull request authors: 18
  • Average comments per issue: 3.97
  • Average comments per pull request: 0.98
  • Merged pull requests: 28
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 19
  • Pull requests: 7
  • Average time to close issues: 28 days
  • Average time to close pull requests: 1 day
  • Issue authors: 16
  • Pull request authors: 4
  • Average comments per issue: 2.74
  • Average comments per pull request: 0.43
  • Merged pull requests: 3
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • hengyanqwe (4)
  • dadaoerv (3)
  • jarrywen (3)
  • Xtaiyang (3)
  • stockcoder (3)
  • peiyun1982 (3)
  • crosswk (3)
  • xdtxAM (2)
  • Morpheusr (2)
  • fanzhixin (2)
  • enci2022 (2)
  • GaiZhenbiao (2)
  • Scolism (2)
  • tomkuo1124 (2)
  • zodiacg (2)
Pull Request Authors
  • MZhao-ouo (10)
  • ZhengQinyu (9)
  • BigDataMao (9)
  • vc12345679 (5)
  • tusik (5)
  • iskoldt-X (4)
  • Keldos-Li (4)
  • zollty (2)
  • QingXuDw (2)
  • Morpheusr (2)
  • slideslide (2)
  • chenditc (2)
  • chenhengjie123 (1)
  • ThorinKong (1)
  • Haste171 (1)
Top Labels
Issue Labels
bug (48) feature request (39) question (31) localhost deployment (14) 📌 confirmed (5) docker deployment (4) server deployment (4) invalid (2) 👍 good (1) 🤷 no can do (1) 🤖 model (1)
Pull Request Labels
🤖 model (1)

Dependencies

.github/workflows/Docker Images.yml actions
  • actions/checkout v3 composite
  • docker/build-push-action v4 composite
  • docker/login-action v2 composite
  • docker/setup-buildx-action v2 composite
  • docker/setup-qemu-action v2 composite
Dockerfile docker
  • python 3.9-slim-buster build
requirements.txt pypi
  • PyPDF2 *
  • Pygments *
  • colorama *
  • commentjson *
  • duckduckgo_search ==2.9.5
  • gradio ==3.28.0
  • gradio_client ==0.1.4
  • langchain <0.0.150
  • llama_index ==0.5.25
  • markdown *
  • mdtex2html *
  • openpyxl *
  • pandas *
  • pdfplumber *
  • pypinyin *
  • socksio *
  • tiktoken *
  • tqdm *
requirements_advanced.txt pypi
  • accelerate *
  • cpm-kernels *
  • datasets *
  • huggingface_hub *
  • icetk *
  • protobuf ==3.19.0
  • sentence_transformers *
  • sentencepiece *
  • torch *
  • transformers *