{"id":13454667,"url":"https://github.com/easychen/chatchan-dist","last_synced_at":"2026-01-27T03:37:22.609Z","repository":{"id":150670771,"uuid":"621261558","full_name":"easychen/chatchan-dist","owner":"easychen","description":"Chat酱独立部署版，docker方案自带代理","archived":false,"fork":false,"pushed_at":"2024-07-29T13:49:31.000Z","size":49636,"stargazers_count":739,"open_issues_count":10,"forks_count":111,"subscribers_count":12,"default_branch":"master","last_synced_at":"2025-02-28T01:47:14.910Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://chatchan-dist-blush.vercel.app","language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/easychen.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-03-30T10:04:11.000Z","updated_at":"2025-02-09T08:07:41.000Z","dependencies_parsed_at":"2024-07-29T17:36:08.433Z","dependency_job_id":null,"html_url":"https://github.com/easychen/chatchan-dist","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/easychen/chatchan-dist","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/easychen%2Fchatchan-dist","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/easychen%2Fchatchan-dist/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/easychen%2Fchatchan-dist/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/easychen%2Fchatchan-dist/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/easychen","download_url":"https://codeload.github.com/easychen/chatchan-dist/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/easychen%2Fchatchan-dist/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28799864,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-27T03:37:11.304Z","status":"ssl_error","status_checked_at":"2026-01-27T03:37:10.427Z","response_time":168,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2024-07-31T08:00:56.615Z","updated_at":"2026-01-27T03:37:22.584Z","avatar_url":"https://github.com/easychen.png","language":"Dockerfile","funding_links":[],"categories":["Others","Dockerfile"],"sub_categories":[],"readme":"推荐使用浏览器插件，除了载入更快，还支持边栏\n\n## 浏览器插件\n\n|微软Edge|谷歌Chrome|\n|-|-|\n| [![](https://github.com/easychen/checkchan-dist/raw/master/image/20220906224637.png)](https://microsoftedge.microsoft.com/addons/detail/aakifgfhadhkcflbkjbhbamljjchpkho) |[![](https://github.com/easychen/checkchan-dist/raw/master/image/20220906224612.png)](https://chrome.google.com/webstore/detail/knadnllihfobgmmeanknpnklccjhiolf)  |\n\n\n点以上图标进入商店页面或者直接在商店搜索「Check酱」即可\n\n\u003e ⚠️ 可 watch 本 repo 以获得在线版最新地址\n\n在线版最新地址 [c3.level06.com](https://c3.level06.com)\n\n# Chat酱独立部署版\n\n\u003e 🎈 Chat酱定制版发布，支持自定义推荐链接、限制使用的Key。[详情请点此查看](https://a.ftqq.com/2023/04/24/chatyou-custom-platform/)。\n\n## 默认界面\n\n![](images/20230404174420.png)\n\n## 最近更新\n\nv1.0.30\n更新默认模型，支持4o、4o-mini。支持通过`default.json`设置默认模型。\n\n```json\n{\n    \"app_name\": \"\",\n    ...,\n    \"chat_model_options\": [\n        {\"label\":\"GPT3.5+\",\"value\":\"gpt-3.5-turbo\"},\n        {\"label\":\"GPT4om\",\"value\":\"gpt-4o-mini\"},\n        {\"label\":\"GPT4o\",\"value\":\"gpt-4o\"},\n        {\"label\":\"GPT4\",\"value\":\"gpt-4\"},\n        {\"label\":\"GPT4+\",\"value\":\"gpt-4-turbo\"},\n        {\"label\":\"GPT5\",\"value\":\"gpt-5\"}\n    ]\n}\n```\n\nv1.0.28\n\n支持用户添加自定义模型，可在设置界面和选择框处输入。可在设置界面清除。\n![](images/20240423121827.png)\n![](images/20240423121848.png)\n\n历史更新见最后\n\n\n### 常用提示词、点击后会自动填入输入框\n\n![](images/20230413115647.png)\n\n### 独立部署版，支持设置默认账号、模型参数、和聊天助手信息\n\n解压 build.zip 后，编辑目录下的 `default.json` 文件，修改对应项内容后保存即可。\n\n\u003e ⚠️ 使用本地浏览器无法载入配置，需要启动http服务\n\n```json\n{\n    \"app_name\": \"\",\n    \"api_key\": \"\",\n    \"api_url\": \"\",\n    \"chat_model\": \"\",\n    \"chat_max_tokens\": \"\",\n    \"chat_temperature\": \"\",\n    \"chat_timeout\": \"\",\n    \"chat_system_prompt\": \"\",\n    \"chat_user_prompt\": \"\",\n    \"chat_character_url\": \"\",\n    \"chat_character_opacity\": 80\n}\n```\n每一项的意义如下：\n\n- \"app_name\": 应用程序名称，用于标识该客户端的名称。\n- \"api_key\": OpenAI/Api2d Key。\n- \"api_url\": API的URL地址，OpenAI的是 https://api.openai.com ; Api2d的是 https://openai.api2d.net 。\n- \"chat_model\": GPT模型的名称，`gpt-3.5-turbo` 或者 `gpt-4` 。\n- \"chat_max_tokens\": 每个聊天回复的最大标记数。\n- \"chat_temperature\": 用于控制生成回复的随机性的温度值。\n- \"chat_timeout\": 聊天接口超时时间，单位为秒。\n- \"chat_system_prompt\": 系统提示，用于指定系统生成的聊天开始语。\n- \"chat_user_prompt\": 用户提示，用于指定用户输入的聊天开始语。\n- \"chat_character_url\": 聊天角色的URL地址，用于指定聊天时显示的角色图片。\n- \"chat_character_opacity\": 聊天角色的不透明度，用于指定聊天时显示的角色图片的透明度。\n\n\nv1.0.5 \n\n![](images/20230408130332.png)\n\n- 支持上传和下载对话记录\n- 支持重新生成答案\n- Docker版自带OpenAI代理，请把自定义地址填为 `http://你的IP:你的端口`，然后请求会从服务器端发送到`api.openai.com`。（请确保Docker部署的环境可以访问api.openai.com）\n\n代理支持访问密码、内容安全、超时设置等，[请点击这里查看详细的环境变量](https://github.com/easychen/openai-api-proxy)\n\n\nv1.0.2 \n\n- 支持自动保存对话，支持总结对话标题\n\n![](images/20230404174121.png)\n\n- 支持自定义背景\n\n![](images/20230404174028.png)\n\n\nChat酱网页版（[c2.level06.com](https://c2.level06.com)）部署在海外服务器，有部分同学访问不了，因此提供一个独立部署版，你可以将它部署到任何服务器，甚至在电脑直接用支持浏览本地网页的浏览器打开使用。\n\n## 使用方法\n\n1. 下载 [build.zip](./build.zip) \n1. 解压后，你会得到一个完整的网站，访问 index.html 即可使用，如果你的浏览器不支持查看本地网页，那么可以下载我打包这些网页的桌面客户端（ 链接：https://share.weiyun.com/jXtYKbZS 密码：chatok ）\n1. 如果要给其他同学使用，可以把这个目录部署到服务器上，然后访问对应目录就行。\n\n## Docker版\n\n虽然我觉得静态网页更简单，但有同学表示想要docker版，于是我让GPT写了个Dockerfile，于是就有了docker版。\n\n使用方法：\n\n不设置默认信息：\n\n```bash\ndocker run -d -p 9000:9000 easychen/chatchan:latest\n```\n\n设置默认信息，首先要保证运行命令的目录下存在 `default.json`：\n```bash\ndocker run -d -p 9000:9000 -v $(pwd)/default.json:/data/web/default.json easychen/chatchan:latest\n```\n\n对话截图：\n\n![](images/20230406173224.png)\n\n## 历史更新\n\n\nv1.0.24\n\n支持 @DALLE 生成图片，更新GPT4模型到0125最新版\n\n\nv1.0.22\n\n支持 GPT4+、GPT4V模型；支持聊天时发送图片\n\n\nv1.0.21\n\n修正参数错误的400错；3.5模型支持根据长度自动在4K和16K之间自动切换\n\nv1.0.18\n\n导出截图时隐藏「复制代码」按钮；「保存对话」添加成功提示\n\nv1.0.17\n\n修复额外审核选项导致直接使用 OpenAI 时报错的问题。\n\nv1.0.16\n\ndefault.json 添加强制审核选项，使用API2D的Key时可以开启该选项。开启后，返回的内容将会送后发送给腾讯云内容安全接口审核，因此响应速度会变慢，费用为每次10P。\n\n开启方式：在 default.json 中添加 `chat_moderation` 字段，为 `on` 时，会审核并拦截输出。\n\n```\n{\n    \"app_name\": \"\",\n    \"api_key\": \"\",\n    \"api_url\": \"\",\n    ...\n    \"chat_moderation\": \"off\"\n}\n```\n\n开启效果：\n\n![](images/20230704232037.png)\n\nv1.0.15\n\n兼容 stream 模式下输出的错误信息\n\nv1.0.14\n\n添加api2d api地址切换按钮\n\nv1.0.13\n\n支持3.5 16K，代码块支持一键复制，去掉对话内容双击填回发布空\n\nv1.0.12 \n\n输入框根据内容自动伸缩，流式输出支持实时渲染Markdown（而不是等输入完成后再渲染）\n\nv1.0.11\n\n修正切换窗口时，重复发送请求的bug。\n\nv1.0.10\n\n支持手动和自动语音朗读（仅API2D的Key）\n\n![](images/20230504102347.png)\n\nv1.0.8\n\n兼容部分无法支持 wasm 的 hosting 环境。但兼容的方式是直接跳过，因此可能出现内容超长导致的400错误，建议按下边的提示添加对 Wasm MIME 的支持以获取完整的功能。\n\n\n\u003e 🚒 BreakingChange: 1.0.7 启用了 wasm 来计算 token，本地浏览器和部分主机环境不支持该类型的文件，需要手工添加支持，具体方法请询问GPT「如何给xxx(你使用的类型比如apache/nginx)服务器添加MIME TYPE 以支持 wasm」\n\n![](images/20230420105053.png)\n\nv1.0.7\n\n- Token可以精确计算了，内容超长不会再出现400错\n- 支持删除单条聊天内容\n- 载入对话记录添加撤销提示\n\nv1.0.6 \n\n- 支持添加常用提示词、点击后会自动填入输入框\n- 独立部署版支持设置默认的账号、模型参数、和聊天助手信息","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feasychen%2Fchatchan-dist","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feasychen%2Fchatchan-dist","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feasychen%2Fchatchan-dist/lists"}