ChuanhuChatGPT README

The project's README from github.com/GaiZhenbiao/ChuanhuChatGPT. As one markdown file: 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

使用技巧

💪 强力功能

🤖 System Prompt

💬 基础对话

📜 对话历史

🖼️ 小而美的体验

👨‍💻 极客功能

⚒️ 部署相关

快速上手

在终端执行以下命令:

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

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

python ChuanhuChatbot.py

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

Note

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

疑难杂症解决

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

  1. 点击网页上的 Download ZIP 按钮,下载最新代码并解压覆盖,或
    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

ChuanhuChatGPT (GaiZhenbiao/ChuanhuChatGPT)

gpt-4
Searching Database…

What is this?ChuanhuChatGPT is a web-based GUI for ChatGPT and many other LLMs, adding extras like agents, file-based Q&A, local model deployment, web search, and GPT fine-tuning on top of a Gradio interface.
Is this a desktop app or a web UI I run myself?It's a self-hosted web app built on Gradio that runs locally (or on a server) and opens in your browser; it can also be installed as a PWA for a more native feel on desktop and mobile.
How do I get it running?Run the project in a terminal, then copy configexample.json to config.json and fill in your API keys; a browser window opens automatically for chatting.
Do I need API keys for these models?Yes — for cloud models (ChatGPT, Claude, Gemini, etc.) you put your API keys in config.json; locally deployed models like ChatGLM or LLaMA don't need a key but require local setup instead.
Do all supported models work the same way?No — some models like XMChat and Midjourney don't support streaming responses, unlike the main chat models.
Who is this aimed at, and what languages does it support?It's aimed at anyone who wants a nicer, more feature-rich front-end for LLMs; the project itself and its README are available in Chinese, English, Japanese, Russian, and Korean.
Does it run on all my devices?Yes — the UI is adapted for Windows, macOS, Linux, iOS, and Android, with icons and full-screen layouts tuned for each platform.
What can the built-in 'assistant' agent do?The Chuanhu Assistant feature works like AutoGPT, automatically trying to solve your problem end-to-end rather than just answering a single prompt.
Can I deploy it on a server instead of my own machine?Yes — you set servername to 0.0.0.0 and a serverport in config.json to expose it on a server, and you can also enable a public share link via Gradio's share option.
Does it support fine-tuning?Yes, it supports fine-tuning GPT-3.5 directly from the UI, letting you create a more personalized model.
Can I search and manage my chat history?Yes — conversation history is saved automatically, isolated per user, renameable, searchable with regex, and can even be auto-named by the LLM itself.
Size
3.3 MB
Stars
15.3K
Age
3y
Commits · 90 Days