简体中文 | English | 日本語

川虎 Chat 🐯 Chuanhu Chat

Logo

Lightweight and User-friendly Web-UI for LLMs including ChatGPT/ChatGLM/LLaMA

Tests Passing GitHub Contributors GitHub pull requests

Streaming / Unlimited conversations / Save history / Preset prompts / Chat with files / Web search
LaTeX rendering / Table rendering / Code highlighting
Auto dark mode / Adaptive web interface / WeChat-like theme
Multi-parameters tuning / Multi-API-Key support / Multi-user support
Compatible with GPT-4 / Local deployment for LLMs

Video Tutorial · 2.0 Introduction · 3.0 Introduction & Tutorial || Online trial · One-Click deployment

Animation Demo

## Usage Tips - To better control the ChatGPT, use System Prompt. - To use a Prompt Template, select the Prompt Template Collection file first, and then choose certain prompt from the drop-down menu. - To try again if the response is unsatisfactory, use `🔄 Regenerate` button. - To start a new line in the input box, press Shift + Enter keys. - To quickly switch between input history, press and key in the input box. - To deploy the program onto a server, change the last line of the program to `demo.launch(server_name="0.0.0.0", server_port=)`. - To get a public shared link, change the last line of the program to `demo.launch(share=True)`. Please be noted that the program must be running in order to be accessed via a public link. - To use it in Hugging Face Spaces: It is recommended to **Duplicate Space** and run the program in your own Space for a faster and more secure experience. ## Installation ```shell git clone https://github.com/GaiZhenbiao/ChuanhuChatGPT.git cd ChuanhuChatGPT pip install -r requirements.txt ``` Then make a copy of `config_example.json`, rename it to `config.json`, and then fill in your API-Key and other settings in the file. ```shell python ChuanhuChatbot.py ``` A browser window will open and you will be able to chat with ChatGPT. > **Note** > > Please check our [wiki page](https://github.com/GaiZhenbiao/ChuanhuChatGPT/wiki/使用教程) for detailed instructions. ## Troubleshooting When you encounter problems, you should try manually pulling the latest changes of this project first. The steps are as follows: 1. Download the latest code archive by clicking on `Download ZIP` on the webpage, or ```shell git pull https://github.com/GaiZhenbiao/ChuanhuChatGPT.git main -f ``` 2. Try installing the dependencies again (as this project may have introduced new dependencies) ``` pip install -r requirements.txt ``` 3. Update Gradio ``` pip install gradio --upgrade --force-reinstall ``` Generally, you can solve most problems by following these steps. If the problem still exists, please refer to this page: [Frequently Asked Questions (FAQ)](https://github.com/GaiZhenbiao/ChuanhuChatGPT/wiki/常见问题) This page lists almost all the possible problems and solutions. Please read it carefully. ## More Information More information could be found in our [wiki](https://github.com/GaiZhenbiao/ChuanhuChatGPT/wiki): - [How to contribute a translation](https://github.com/GaiZhenbiao/ChuanhuChatGPT/wiki/Localization) - [How to make a contribution](https://github.com/GaiZhenbiao/ChuanhuChatGPT/wiki/贡献指南) - [How to cite the project](https://github.com/GaiZhenbiao/ChuanhuChatGPT/wiki/使用许可#如何引用该项目) - [Project changelog](https://github.com/GaiZhenbiao/ChuanhuChatGPT/wiki/更新日志) - [Project license](https://github.com/GaiZhenbiao/ChuanhuChatGPT/wiki/使用许可) ## Starchart [![Star History Chart](https://api.star-history.com/svg?repos=GaiZhenbiao/ChuanhuChatGPT&type=Date)](https://star-history.com/#GaiZhenbiao/ChuanhuChatGPT&Date) ## Contributors ## Sponsor 🐯 If you find this project helpful, feel free to buy me a coke or a cup of coffee~ Buy Me A Coffee image