{"id":14484150,"url":"https://github.com/IEIT-Yuan/YuanChat","last_synced_at":"2025-08-30T05:33:02.170Z","repository":{"id":215536905,"uuid":"738487911","full_name":"IEIT-Yuan/YuanChat","owner":"IEIT-Yuan","description":null,"archived":false,"fork":false,"pushed_at":"2024-08-26T08:02:33.000Z","size":20046,"stargazers_count":34,"open_issues_count":4,"forks_count":7,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-09-04T01:02:04.865Z","etag":null,"topics":["fastapi","huggingface","inference","large-language-models","llm","nodejs","python","transformer","vuejs3"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/IEIT-Yuan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-01-03T10:43:53.000Z","updated_at":"2024-08-30T05:47:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"80df09c3-b8b4-49ab-9016-78ce015801b1","html_url":"https://github.com/IEIT-Yuan/YuanChat","commit_stats":null,"previous_names":["ieit-yuan/yuanchat"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/IEIT-Yuan/YuanChat","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IEIT-Yuan%2FYuanChat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IEIT-Yuan%2FYuanChat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IEIT-Yuan%2FYuanChat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IEIT-Yuan%2FYuanChat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/IEIT-Yuan","download_url":"https://codeload.github.com/IEIT-Yuan/YuanChat/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IEIT-Yuan%2FYuanChat/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272808527,"owners_count":24996529,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-30T02:00:09.474Z","response_time":77,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["fastapi","huggingface","inference","large-language-models","llm","nodejs","python","transformer","vuejs3"],"created_at":"2024-09-03T01:00:58.530Z","updated_at":"2025-08-30T05:33:02.123Z","avatar_url":"https://github.com/IEIT-Yuan.png","language":"Python","funding_links":[],"categories":["A01_文本生成_文本对话","推理 Inference"],"sub_categories":["大语言对话模型及数据"],"readme":"\u003ca name=\"readme-top\"\u003e\u003c/a\u003e\r\n\r\n\u003c!-- TODO --\u003e\r\n\r\n[![Info][forks-shield]][forks-url]\r\n[![Apache License][license-shield]][license-url]\r\n\r\n\u003c!-- 项目LOGO --\u003e\r\n\u003cbr /\u003e\r\n\u003cdiv align=\"center\"\u003e\r\n  \u003ca href=\"https://airyuan.cn/home\"\u003e\r\n    \u003cimg src=\"docs/images/favicon.png\" alt=\"Logo\" width=\"400\" height=\"160\"\u003e\r\n  \u003c/a\u003e\r\n\r\n  \u003cp align=\"center\"\u003e\r\n    Yuan LLM 开源项目对话应用\r\n    \u003cbr /\u003e\r\n    \u003ca href=\"https://airyuan.cn/home\"\u003e\u003cstrong\u003e 源官网 »\u003c/strong\u003e\u003c/a\u003e\r\n    \u003cbr /\u003e\r\n    \u003cbr /\u003e\r\n  \u003c/p\u003e\r\n\r\n[English](./README_EN.md) / 简体中文\r\n\r\n\u003c/div\u003e\r\n\r\n## :tada: 最近更新\r\n* :fire: [2025-02-21]  **YuanChat V1.0.0新版本功能优化升级，支持MaaS、Ollama与Server端模型部署**\r\n* :fire: [2024-12-16] [**YuanChat V0.9.1新版本功能优化升级** :point_right:](./docs/YuanChatV0.9.1新版本功能优化升级.md)\r\n* :fire: [2024-10-25] [**YuanChat升级智能体YuanPPT** :point_right:](./docs/YuanChat通用智能体YuanPPT升级.md)\r\n* :fire: [2024-09-29] [**YuanChat V0.8 新增自动PPT生成功能** :point_right:](./docs/YuanChatV0.8.md)\r\n* :fire: [2024-06-14] [**`not found libllama.dll`问题修复补丁** :point_right:](./docs/YuanChat_libllama_not_found_patch.md)\r\n* :fire: [2024-05-31] [**YuanChat V0.5 通用版本升级：知识库、网络检索、插件市场、模型管理功能增强** :point_right:](./docs/YuanChat通用版本V0.5.md)\r\n* :fire: [2024-04-29] [**全新YuanChat个人助手版本：多模型推理（with ModelScope）、RAG检索、网络搜索、文档阅读，支持CPU Only运行** :point_right:](./docs/YuanChat全面升级通用版本.md)\r\n* :fire: [2024-04-23] [**YuanChat全面升级：知识库、网络检索、全新交互体验、适配intel XPU** :point_right:](./docs/YuanChat全面升级XPU版本.md)\r\n* :fire: [2024-03-06] [**基于llamacpp的 Yuanchat.exe 使用教程** :point_right:](./docs/基于llamacpp的Yuanchat.exe使用教程.md)\r\n* :fire: [2024-02-29] [**支持网络搜索增强** :point_right:](./docs/支持网络搜索增强.md)\r\n* :fire: [2024-02-04] [**推出 Windows 桌面版 YuanChat.exe** :point_right:](./docs/推出Windows桌面版YuanChat.exe.md)\r\n* :fire: [2024-01-05] [**笔记本上快速部署Yuan大模型和YuanChat** :point_right:](./docs/在笔记本上快速部署YuanModel和YuanChat.md)\r\n---\r\n\u003c!-- TODO --\u003e\r\n\u003c!-- TABLE OF CONTENTS --\u003e\r\n\u003cdetails\u003e\r\n  \u003csummary\u003e目录\u003c/summary\u003e\r\n  \u003col\u003e\r\n    \u003cli\u003e\r\n      \u003ca href=\"#about-the-project\"\u003e关于\u003c/a\u003e\r\n      \u003cul\u003e\r\n        \u003cli\u003e\u003ca href=\"#built-with\"\u003e构建\u003c/a\u003e\u003c/li\u003e\r\n      \u003c/ul\u003e\r\n    \u003c/li\u003e\r\n    \u003cli\u003e\r\n      \u003ca href=\"#getting-started\"\u003e开始\u003c/a\u003e\r\n      \u003cul\u003e\r\n        \u003cli\u003e\u003ca href=\"#1-deploy-with-docker\"\u003eDocker部署\u003c/a\u003e\u003c/li\u003e\r\n        \u003cli\u003e\u003ca href=\"#2-deploy-with-source\"\u003e源码部署\u003c/a\u003e\u003c/li\u003e\r\n      \u003c/ul\u003e\r\n    \u003c/li\u003e\r\n    \u003cli\u003e\u003ca href=\"#roadmap\"\u003e产品规划\u003c/a\u003e\u003c/li\u003e\r\n    \u003cli\u003e\u003ca href=\"#contributing\"\u003e贡献\u003c/a\u003e\u003c/li\u003e\r\n    \u003cli\u003e\u003ca href=\"#license\"\u003e许可\u003c/a\u003e\u003c/li\u003e\r\n\r\n  \u003c/ol\u003e\r\n\u003c/details\u003e\r\n\r\n\u003c!-- 关于 --\u003e\r\n\r\n## 关于\r\n\r\n\u003c!-- TODO --\u003e\r\n\r\n![YuanChat Screen Shot][product-screenshotgif]\r\n\r\n`源Chat` 是[Yuan-2.0](https://github.com/IEIT-Yuan/Yuan-2.0/tree/main) 项目的一部分, 作为[Yuan-2.0](https://github.com/IEIT-Yuan/Yuan-2.0/tree/main)的一个客户端应用. `源Chat` 提供了一种简单的交互方式，可以让用户很轻松的使用 [Yuan-2.0](https://github.com/IEIT-Yuan/Yuan-2.0/tree/main), 用户可以很方便的进行测试以及使用。\r\n\r\n\u003cp align=\"right\"\u003e(\u003ca href=\"#readme-top\"\u003e回到顶端\u003c/a\u003e)\u003c/p\u003e\r\n\r\n### 构建\r\n\r\n本项目基于下面这些优秀的项目：\r\n\r\n[![FastAPI][FastAPI.com]][FastAPI-url][![Vue][Vue.js]][Vue-url][![NodeJS][nodejs.org]][Nodejs-url]\r\n\r\n\u003cp align=\"right\"\u003e(\u003ca href=\"#readme-top\"\u003e回到顶端\u003c/a\u003e)\u003c/p\u003e\r\n\r\n\u003c!-- GETTING STARTED --\u003e\r\n\r\n## 开始\r\n\r\n### 1. Docker 部署\r\n\r\n#### 1.1 依赖条件\r\n\r\n首先，在您使用 Docker 部署之前，您需要先安装：\r\n\r\n- [Docker](https://www.docker.com/) 18.03+\r\n- [Yuan-2.0](https://github.com/IEIT-Yuan/Yuan-2.0/tree/main), 部署 Docker [参考](https://github.com/IEIT-Yuan/Yuan-2.0/blob/main/README.md#%E5%BF%AB%E9%80%9F%E5%90%AF%E5%8A%A8), 获取推理服务的 request url：`http://127.0.0.1:8000` [参考](https://github.com/IEIT-Yuan/Yuan-2.0/blob/main/docs/inference_server_cn.md)\r\n- [Chrome](https://www.google.com/chrome)\r\n\r\n#### 1.2 部署\r\n\r\n我们提供了一个制作好的`源Chat`镜像，一条命令就可以完成项目的部署操作。\r\n\r\n\u003c!-- TODO --\u003e\r\n\r\n```shell\r\ndocker run --rm -d --name yuanchat -p 5050:5050 -e YUAN_2_URL=http://ip:port/yuan yuanmodel/yuanchat:latest\r\n```\r\n\r\n这里， `YUAN_2_URL=http://ip:port/yuan` 是[Yuan-2.0](https://github.com/IEIT-Yuan/Yuan-2.0/tree/main)模型服务的地址，ip 是你部署[Yuan-2.0](https://github.com/IEIT-Yuan/Yuan-2.0/tree/main)服务的节点 ip，port 是服务对外端口，例如，你可以这样写：`http://192.168.1.1:8000/yuan` 。\r\n\r\n#### 1.3 验证\r\n\r\n在浏览器中访问链接：[http://localhost:5050](http://localhost:5050)，如果部署正确，那么你将会看到这个页面：\r\n\r\n![YuanChat Screen Shot][product-screenshot]\r\n\r\n\u003cp align=\"right\"\u003e(\u003ca href=\"#readme-top\"\u003e回到顶端\u003c/a\u003e)\u003c/p\u003e\r\n\r\n---\r\n\r\n### 2. 源码部署\r\n\r\n\u003c!-- TODO --\u003e\r\n\r\n**用源码创建并部署属于你自己的版本**\r\n\r\n#### 2.1 依赖条件\r\n\r\n在源码部署之前，你需要安装以下开发环境\r\n\r\n- [Python](https://www.python.org/downloads/) 3.8+\r\n- [nodejs](https://nodejs.org/) 18+\r\n- [Yuan-2.0](https://github.com/IEIT-Yuan/Yuan-2.0/tree/main), 部署 Docker [参考](https://github.com/IEIT-Yuan/Yuan-2.0/blob/main/README.md#%E5%BF%AB%E9%80%9F%E5%90%AF%E5%8A%A8), 获取推理服务的 request url：`http://127.0.0.1:8000` [参考](https://github.com/IEIT-Yuan/Yuan-2.0/blob/main/docs/inference_server_cn.md)\r\n- [Chrome](https://www.google.com/chrome)\r\n\r\n#### 2.2 部署\r\n\r\n##### 2.2.1 下载源码\r\n\r\n```shell\r\ngit clone https://github.com/IEIT-Yuan/YuanChat.git\r\n```\r\n\r\n##### 2.2.2 生成静态文件\r\n\r\n```shell\r\ncd YuanChat/src/webui\r\nnpm install\r\nnpm run build\r\n```\r\n\r\n\u003e _获取更多 webui 详细信息，请参考 [README](src/webui/README.md)_\r\n\r\n##### 2.2.3 修改项目配置文件\r\n\r\n如果你的`Yuan-2.0` 模型服务的地址不是`http://127.0.0.1:8000`，你需要在`YuanChat/src/python/yuan_processing/as_constants.py`中`YUAN_2_URL`参数指定正确的地址，例如：`YUAN_2_URL=http://192.168.1.1:8000/yuan`\r\n\r\n\u003e _获取更多 python 服务端详细信息，请参考 [README](src/python/README.md)_\r\n\r\n##### 2.2.4 安装 python 依赖包\r\n\r\n```shell\r\ncd YuanChat\r\npip install -r requirements.txt\r\n```\r\n\r\n##### 2.2.5 启动 python 服务\r\n\r\n```shell\r\ncd YuanChat\r\nbash start.sh\r\n```\r\n\r\n#### 2.2.6 Web UI 定制修改\r\n\r\n- 修改源 Chat Web UI 左上角的 Logo，需要将 `/src/webui/public/logo.png` 替换为提前准备好的 Logo 图片，建议图片尺寸为 120\\*48。\r\n\r\n- 修改源 Chat 的对话欢迎语，需要修改 `/src/webui/src/locales/lang/zh-CN.js` 中的多语言配置，具体要修改以下内容：\r\n\r\n```javascript\r\n  welcomeHeader: '我是源Chat，基于源2.0大模型的对话应用。',\r\n  welcomeParagraph1: '我能够进行多轮对话，回答领域问题，协助人们进行应用文写作和艺术创作。',\r\n```\r\n\r\n- 修改源 Chat 的对话推荐问题，需要修改 `/src/webui/public/recommends.json` 中的内容。\r\n\r\n当你处于 web UI 的本地开发模式（请参考 [README](src/webui/README.md)），以上修改将立即生效。如果要部署，请参考[源码部署](#222-生成静态文件)章节\r\n\r\n#### 2.3 验证\r\n\r\n在浏览器中访问链接 [http://localhost:5050](http://localhost:5050)，如果部署正确，那么你将会看到这个页面：\r\n\r\n![YuanChat Screen Shot][product-screenshot]\r\n\r\n\u003c!-- ROADMAP --\u003e\r\n\r\n## 产品规划\r\n\r\n- [x] 增加 README 中文文档\r\n- [ ] 增加 windows+GPU 部署说明\r\n\r\n\u003cp align=\"right\"\u003e(\u003ca href=\"#readme-top\"\u003e回到顶端\u003c/a\u003e)\u003c/p\u003e\r\n\r\n\u003c!-- CONTRIBUTING --\u003e\r\n\r\n## 贡献\r\n\r\n\u003c!-- TODO --\u003e\r\n\r\n贡献使得开源社区成为一个学习、激励和创造的绝佳场所。**非常感谢**您的任何贡献。\r\n\r\n如果你对我们有更好的建议，请将仓库 fork 下来，并创建一个 pr。您也可以简单点，用标签“优化”给我们提一个问题。\r\n别忘了给这个项目打一颗星！再次感谢！\r\n\r\n1. 从仓库 Fork 项目\r\n2. 创建一个你的分支 (`git checkout -b feature/AmazingFeature`)\r\n3. 提交你的变更 (`git commit -m 'Add some AmazingFeature'`)\r\n4. 将代码 push 到你的远程分支 (`git push origin feature/AmazingFeature`)\r\n5. 提交 Pull Request\r\n\r\n\u003cp align=\"right\"\u003e(\u003ca href=\"#readme-top\"\u003e回到顶端\u003c/a\u003e)\u003c/p\u003e\r\n\r\n\u003c!-- LICENSE --\u003e\r\n\r\n## 许可\r\n\r\n\u003c!-- TODO --\u003e\r\n\r\n在`YuanChat License`下分发. 获取更多信息请参考 [YuanChat LICENSE](./LICENSE-YuanChat) .\r\n\u003cbr /\u003e\r\n在`Apache License 2.0`下分发. 获取更多信息请参考 [LICENSE](./LICENSE) .\r\n\r\n\u003cp align=\"right\"\u003e(\u003ca href=\"#readme-top\"\u003e回到顶端\u003c/a\u003e)\u003c/p\u003e\r\n\r\n\u003c!-- MARKDOWN LINKS \u0026 IMAGES --\u003e\r\n\u003c!-- https://www.markdownguide.org/basic-syntax/#reference-style-links --\u003e\r\n\r\n[contributors-shield]: https://img.shields.io/github/stars/ieit-yuan?label=IEIT-Yuan%20Stars\r\n[contributors-url]: https://github.com/othneildrew/Best-README-Template/graphs/contributors\r\n[forks-shield]: https://img.shields.io/badge/IEIT_Yuan-Open_Source-blue?style=for-the-badge\r\n[forks-url]: https://github.com/othneildrew/Best-README-Template/network/members\r\n[stars-shield]: https://img.shields.io/github/stars/othneildrew/Best-README-Template.svg?style=for-the-badge\r\n[stars-url]: https://github.com/othneildrew/Best-README-Template/stargazers\r\n[issues-shield]: https://img.shields.io/github/issues/othneildrew/Best-README-Template.svg?style=for-the-badge\r\n[issues-url]: https://github.com/othneildrew/Best-README-Template/issues\r\n[license-shield]: https://img.shields.io/badge/license-apache20-green?style=for-the-badge\r\n[license-url]: ./LISENCE\r\n[linkedin-shield]: https://img.shields.io/badge/-LinkedIn-black.svg?style=for-the-badge\u0026logo=linkedin\u0026colorB=555\r\n[linkedin-url]: https://linkedin.com/in/othneildrew\r\n[product-screenshot]: docs/images/screenshot.jpg\r\n[product-screenshotgif]: docs/images/screenshot.gif\r\n[FastAPI.com]: https://img.shields.io/badge/fastapi-white?style=for-the-badge\u0026logo=fastapi\r\n[FastAPI-url]: https://fastapi.tiangolo.com/\r\n[nodejs.org]: https://img.shields.io/badge/nodejs-white?style=for-the-badge\u0026logo=node.js\r\n[Nodejs-url]: https://nodejs.org/\r\n[Vue.js]: https://img.shields.io/badge/Vue.js-35495E?style=for-the-badge\u0026logo=vuedotjs\u0026logoColor=4FC08D\r\n[Vue-url]: https://vuejs.org/\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FIEIT-Yuan%2FYuanChat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FIEIT-Yuan%2FYuanChat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FIEIT-Yuan%2FYuanChat/lists"}