{"id":13569264,"url":"https://github.com/whyiyhw/chatgpt-wechat","last_synced_at":"2026-05-29T06:03:37.372Z","repository":{"id":144633092,"uuid":"600534454","full_name":"whyiyhw/chatgpt-wechat","owner":"whyiyhw","description":"企业微信/微信 安全使用的 LLM 个人助手/客服, 也支持 dify 工作流","archived":false,"fork":false,"pushed_at":"2025-03-26T16:59:11.000Z","size":66139,"stargazers_count":1007,"open_issues_count":14,"forks_count":198,"subscribers_count":19,"default_branch":"main","last_synced_at":"2025-04-04T05:40:20.772Z","etag":null,"topics":["deepseek","dify","dify-services","gemini","gpt-4","gpt-4o","gpt4o-mini","wechat","wecom"],"latest_commit_sha":null,"homepage":"","language":"Go","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/whyiyhw.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":"2023-02-11T19:39:39.000Z","updated_at":"2025-04-03T02:48:34.000Z","dependencies_parsed_at":null,"dependency_job_id":"4d808e7e-49fe-4e17-8ea6-4fe2768ac6ed","html_url":"https://github.com/whyiyhw/chatgpt-wechat","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/whyiyhw/chatgpt-wechat","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whyiyhw%2Fchatgpt-wechat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whyiyhw%2Fchatgpt-wechat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whyiyhw%2Fchatgpt-wechat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whyiyhw%2Fchatgpt-wechat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/whyiyhw","download_url":"https://codeload.github.com/whyiyhw/chatgpt-wechat/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whyiyhw%2Fchatgpt-wechat/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33639056,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-29T02:00:06.066Z","response_time":107,"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":["deepseek","dify","dify-services","gemini","gpt-4","gpt-4o","gpt4o-mini","wechat","wecom"],"created_at":"2024-08-01T14:00:37.784Z","updated_at":"2026-05-29T06:03:37.363Z","avatar_url":"https://github.com/whyiyhw.png","language":"Go","funding_links":[],"categories":["Go","Others"],"sub_categories":[],"readme":"# chatgpt-wechat\n\n可在微信 **安全使用（通过企业微信中转到微信，无封号风险）** 的 ChatGPT 个人助手应用,\n\n\u003e 本项目开源免费，不开知识星球，没有付费环节，除了最后给我自己的公众号【积木成楼】打了广告，\n\u003e 未在 GitHub 以外的地方进行引流操作。请谨记，要求你付费的都是骗子！\n\n## 升级指引(v1.0.0 目前还处开发期,稳定版本使用 v0.6.6)\n- 原始功能基本不受影响，但数据库切换到 `pgsql` 方便 向量化查询\n- 支持了 Google 的 Gemini-pro 每个 token 60/m 的调用还是很香\n- 支持了 web bot 设置，同时支持将 bot 发布到客服\n- web 项目地址 [https://github.com/whyiyhw/agent-web](https://github.com/whyiyhw/agent-web) 前端苦手，全靠 GPT4 配合写的页面\n- 支持了最新的企业微信客服协议\n- 企业微信api支持自定义域名\n- 项目小助手，有问题可以先问它哦 ➡️➡️➡️ ![img.png](doc/imgv101.png)\n\n## 主要能力（[点击查看详情](./doc/ability.md)）\n\n- 微信可用：基于企业微信中转，可在微信中安全使用\n- 客服消息：[支持多渠道客服消息接入](./doc/custom_support_service.md)\n- 代理支持： `http/sock5` 代理 \u0026\u0026 反向域名代理支持, 除了 `openai` 也兼容了 `azure-openai`\n- 会话：\n  - 场景模式：支持动态修改 `prompt`，预定义了上百种 `prompt` 角色模板\n  - 连续对话：自适应的上下文设计，让 LLM 🧠拥有更长时间的短期记忆，避免手动清理上下文\n  - 会话切换：多会话支持，可切换聊天场景,不丢失对话内容,可导出会话\n  - 极速响应：支持基于流式接口的分段消息响应\n- 消息：\n  - 语音消息：支持多国语音消息，以及多语言文本输入\n  - 图片消息：支持图片消息（答题场景）\n- 绘画：\n  - 支持`stable diffusion 1.5`作图\n  - 支持 `openai` 作图\n- 私有数据：`milvus` 私有化向量知识库支持\n- 插件机制：[支持插件，点击查看](./doc/plugin.md)\n  - 目前已支持 `shell`、`search`、`wikipedia`\n  - 各位也可按照规则自行开发接入其他能力（summary, 天气 ...）\n\n## 完整安装步骤（[点击查看详情](./doc/install.md)）\n\n### 配置项详解（[点击查看详情](./doc/config.md)）\n\n### 进阶玩法\n\n- [企业微信客服](./doc/custom_support_service.md)\n- [插件的使用](./doc/plugin.md)\n- [图片生成-stable-diffusion](./doc/draw.md)\n- [远程调用本地服务](./doc/frp.md)\n\n## 项目架构设计（点击查看）\n![system.png](./doc/system.png)\n## 版本更新日志 [点击查看详情](./doc/CHANGELOG.md)\n\n\u003cdetails\u003e\n\u003csummary\u003e已实现\u003c/summary\u003e\n- [x] 支持 gpt-4o ,支持 one-api 的自定义的模型名称 2024-05-14\n- [x] 单服务-多应用支持 2023-03-05\n- [x] 新增代理设置      2023-03-05\n- [x] 支持最新的 gpt3.5 与模型可自行切换\n- [x] 支持 prompt 自定义配置\n- [x] 命令式动态调整对话参数\n- [x] 系统设置\u0026预定义模板 2023-03-17\n- [x] 支持服务端直接对接企业微信，无需云函数中转 2023-03-18\n- [x] 支持多渠道客服消息 2023-04-02\n- [x] 支持中英文语音输入 2023-04-07\n- [x] 支持分段极速响应 2023-04-08\n- [x] 支持向量引擎查询，基于语料的上下文与智能推荐 2023-04-08\n- [x] 独立的上下文环境，可任意切换聊天场景 2023-04-09\n- [x] 自适应的上下文长度，不用再频繁手动清理上下文环境 2023-04-09\n- [x] 基础插件功能 2023-04-15\n- [x] 支持 stable diffusion 1.5作图 [服务配置](https://help.aliyun.com/practice_detail/611227) 2023-04-25\n- [x] 加入搜索插件 2023-04-27\n- [x] 支持 openai key 余额查询 2023-05-15\n- [x] 支持 openai 作图 2023-05-27\n\u003c/details\u003e\n\n---\n\n\u003cdetails\u003e\n\u003csummary\u003e feature 版本，考虑与执行中\u003c/summary\u003e\n\n- [ ] 消息超长时如何处理？\n- [ ] 自适应上下文，需要加入省流模式\n- [ ] 作图支持 midjourney  api\n- [ ] web 管理端\n- [ ] web 客户端\u0026用户体系改版\n- [ ] 功能演示视频\n- [ ] 可选\n  - [ ] 阿里云 5000 小时免费额度白嫖计划\n  - [ ] 同声转译 so-vits-svc 支持 \n  - [ ] 支持 openapi 对话 token 累计功能， 余额不足时，支持 token 更换（可选）\n  - [ ] 支持私有化知识库插件（可选）\n  - [ ] 支持特定角色对话-如雅思口语练习（可选）\n  - [ ] 支持web管理页面，配置入库方便修改（可选）\n  - [ ] 支持 多 key 轮询，应对 openai 的限流机制（可选）\n  - [ ] 长期记忆插件（规划中）\n- [ ] 十分期待您的需求，可以提issue...\n\u003c/details\u003e\n\n## FQA\n\n### 配置完成，发送给 openai 的消息有响应，但是应用没有收到回复？\n\u003cdetails\u003e\n\u003csummary\u003e\u003c/summary\u003e\n\n- 请确认 [5. 配置企业可信IP](./doc/install.md#5-配置企业可信ip) ，已配置\n- 如果还是没有响应，请通过 `docker logs -f chat_web_1` 进行查看，\n  - 应用消息的 关键字为 `应用消息-发送失败 err:` \n  - 客服消息的 关键字为 `客服消息-发送失败 err:`\n- 如果存在 `Code 41001， Msg: \"access token mising` ... 等 access_token 异常的,请再次确认\n安装流程中的对应参数`CorpID ,agentSercret ,agentID` 是否正确配置\n\u003c/details\u003e\n\n### 服务器在国内，出现 `connect: connection refused`\n\u003cdetails\u003e\n\u003csummary\u003e\u003c/summary\u003e\n\n- 方法一 ： 请自行 安装 `proxy client` 然后开启 监听 0.0.0.0:socket 模式 ，不要开启认证，之后在配置文件中，开启配置就OK,详情请见 `v0.2.2` \n- 方法二 ： 把服务器移到 香港/海外 , 大陆地区将长期不能访问\n\u003c/details\u003e\n\n### 修改 `chat-api.yaml` 配置后如何让其生效\n\u003cdetails\u003e\n\u003csummary\u003e\u003c/summary\u003e\n\n- 你可以通过 `docker-compose restart web` 重启 web 服务\n- 或者 `docker-compose build \u0026\u0026 docker-compose up -d` 重启整个服务\n\u003c/details\u003e\n\n### 如何修改 redis 密码? \n\u003cdetails\u003e\n\u003csummary\u003e\u003c/summary\u003e\n\n- 首先修改 `chat/service/chat/api/etc/chat-api.yaml` \n```yaml\nRedisCache:\n    Pass: \"xxxxxx\"\n```\n- 再修改 `chat/build/redis/redis.conf`\n```ini\nrequirepass \"xxxxx\"\n```\n- 最后 `docker-compose down \u0026\u0026 docker-compose up -d` 重启整个服务\n\u003c/details\u003e\n\n### 更新后 redis 服务启动失败或者连不上redis？\n\u003cdetails\u003e\n\u003csummary\u003e\u003c/summary\u003e\n\n\u003e 请考虑删除 `chat/build/redis/data/` 下的文件，可能是因为旧版本的 redis 存在残留文件导致的\n\n- 请先 `docker-compose down` 停止服务\n- 然后 删除redis 本地文件 `chat/build/redis/data/` 下的文件\n- 最后 `docker-compose up -d` 重启服务\n\n\u003c/details\u003e\n\n## 感谢以下朋友对于本项目的大力支持~\n  \u003cp align=\"center\"\u003e\n    \u003ca href=\"https://github.com/whyiyhw/chatgpt-wechat\" target=\"_blank\" rel=\"noopener noreferrer\"\u003e\n        \u003cimg width=\"60\" src=\"./doc/support01.jpg\" alt=\"supprt01\" /\u003e\n        \u003cimg width=\"60\" src=\"./doc/support02.jpg\" alt=\"supprt02\" /\u003e\n        \u003cimg width=\"60\" src=\"./doc/support03.jpg\" alt=\"supprt03\" /\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://www.chaotiinfo.cn\" target=\"_blank\" rel=\"noopener noreferrer\"\u003e\n        \u003cimg width=\"60\" src=\"./doc/support04.png\" alt=\"supprt04\" /\u003e\n    \u003c/a\u003e\n  \u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwhyiyhw%2Fchatgpt-wechat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwhyiyhw%2Fchatgpt-wechat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwhyiyhw%2Fchatgpt-wechat/lists"}