{"id":19175842,"url":"https://github.com/connectai-e/chatgpt-perfectui","last_synced_at":"2025-10-06T13:28:06.808Z","repository":{"id":158732473,"uuid":"617782071","full_name":"ConnectAI-E/ChatGPT-PerfectUI","owner":"ConnectAI-E","description":"✨ 用Vue3 + Vite + Tailwindcss 复刻ChatGPT！体验一模一样的web-app！✨","archived":false,"fork":false,"pushed_at":"2024-05-21T18:23:40.000Z","size":261,"stargazers_count":328,"open_issues_count":6,"forks_count":70,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-17T03:12:28.061Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Vue","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ConnectAI-E.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","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-03-23T05:04:44.000Z","updated_at":"2025-02-14T05:55:48.000Z","dependencies_parsed_at":"2024-07-31T15:08:41.634Z","dependency_job_id":"8481c1d4-3648-4986-896a-e0cc943fb506","html_url":"https://github.com/ConnectAI-E/ChatGPT-PerfectUI","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ConnectAI-E%2FChatGPT-PerfectUI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ConnectAI-E%2FChatGPT-PerfectUI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ConnectAI-E%2FChatGPT-PerfectUI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ConnectAI-E%2FChatGPT-PerfectUI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ConnectAI-E","download_url":"https://codeload.github.com/ConnectAI-E/ChatGPT-PerfectUI/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240254288,"owners_count":19772392,"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","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-11-09T10:25:39.966Z","updated_at":"2025-10-06T13:28:01.771Z","avatar_url":"https://github.com/ConnectAI-E.png","language":"Vue","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align='center'\u003e\n   🚧 项目正在施工...  🚧\n\u003c/p\u003e\n\u003cp align='center'\u003e\n    \u003cimg src='https://user-images.githubusercontent.com/50035229/227083599-5b674cab-f780-485f-863c-e29d87437ea7.png' alt='' width='800'/\u003e\n\u003c/p\u003e\n\u003cbr\u003e\n\u003cp align='center'\u003e\n\tVue3 + Vite + Tailwindcss\n\u003cbr\u003e\t\u003cbr\u003e\n\t复刻ChatGPT网页，体验一模一样的web-app！\n\u003cbr\u003e \u003cbr\u003e\n    🍑 ChatGPT PerfectUII\n\u003c/p\u003e\n\n\n\n\n## 项目开发\n\n\n\n#### 后端部分\n获取 `Openai Api Key` 或 `accessToken` 并填写本地环境变量, [更多其他环境变量的介绍](#环境变量)\n\n```\n#进入文件夹 `/service`\nmv .env.example .env\n\n# OpenAI API Key - https://platform.openai.com/overview\nOPENAI_API_KEY=\n\n# change this to an `accessToken` extracted from the ChatGPT site's `https://chat.openai.com/api/auth/session` response\nOPENAI_ACCESS_TOKEN=\n\npnpm install\npnpm start\n```\n\n#### 前端部分\n```shell\n#根目录下运行以下命令\nmv .env.example .env\n\npnpm bootstrap\npnpm dev\n```\n\n\n## 环境变量\n\n`API` 可用：\n\n- `OPENAI_API_KEY` 和 `OPENAI_ACCESS_TOKEN` 二选一\n- `OPENAI_API_MODEL`  设置模型，可选，默认：`gpt-3.5-turbo`\n- `OPENAI_API_BASE_URL` 设置接口地址，可选，默认：`https://api.openai.com`\n\n`ACCESS_TOKEN` 可用：\n\n- `OPENAI_ACCESS_TOKEN`  和 `OPENAI_API_KEY` 二选一，同时存在时，`OPENAI_API_KEY` 优先\n- `API_REVERSE_PROXY` 设置反向代理，可选，默认：`https://bypass.duti.tech/api/conversation`，[社区](https://github.com/transitive-bullshit/chatgpt-api#reverse-proxy)（注意：只有这两个是推荐，其他第三方来源，请自行甄别）\n\n通用：\n\n- `AUTH_SECRET_KEY` 访问权限密钥，可选\n- `MAX_REQUEST_PER_HOUR` 每小时最大请求次数，可选，默认无限\n- `TIMEOUT_MS` 超时，单位毫秒，可选\n- `SOCKS_PROXY_HOST` 和 `SOCKS_PROXY_PORT` 一起时生效，可选\n- `SOCKS_PROXY_PORT` 和 `SOCKS_PROXY_HOST` 一起时生效，可选\n- `HTTPS_PROXY` 支持 `http`，`https`, `socks5`，可选\n- `ALL_PROXY` 支持 `http`，`https`, `socks5`，可选\n\n## 部署上线\n\n\u003cdetails\u003e\n    \u003csummary\u003eDocker部署\u003c/summary\u003e\n\u003cbr\u003e\n\n```bash\ndocker build -t chatgpt-web .\n\n# 前台运行\ndocker run --name chatgpt-web --rm -it -p 3002:3002 --env OPENAI_API_KEY=your_api_key chatgpt-web\n\n# 后台运行\ndocker run --name chatgpt-web -d -p 3002:3002 --env OPENAI_API_KEY=your_api_key chatgpt-web\n\n# 运行地址\nhttp://localhost:3002/\n```\n\u003c/details\u003e\n\n\u003cdetails\u003e\n    \u003csummary\u003e手动打包\u003c/summary\u003e\n\u003cbr\u003e\n\n#### 后端服务\n\u003e 如果你不需要本项目的 `node` 接口，可以省略如下操作\n\n复制 `service` 文件夹到你有 `node` 服务环境的服务器上。\n\n```shell\n# 安装\npnpm install\n\n# 打包\npnpm build\n\n# 运行\npnpm prod\n```\n\nPS: 不进行打包，直接在服务器上运行 `pnpm start` 也可\n\n#### 前端网页\n\n1、修改根目录下 `.env` 文件中的 `VITE_GLOB_API_URL` 为你的实际后端接口地址\n\n2、根目录下运行以下命令，然后将 `dist` 文件夹内的文件复制到你网站服务的根目录下\n\n[参考信息](https://cn.vitejs.dev/guide/static-deploy.html#building-the-app)\n\n```shell\npnpm build\n```\n\n\u003c/details\u003e\n\n\n\n## 参与贡献\n本项目参考[chatgpt-web](https://github.com/Chanzhaoyu/chatgpt-web)\n\n贡献之前请先阅读 [贡献指南](./CONTRIBUTING.md)\n\n感谢飞叶在林的小伙伴，以及所有做过贡献的人!\n\n\u003ca href=\"https://github.com/leizhenpeng/ChatGPT-PerfectUI/graphs/contributors\"\u003e\n  \u003cimg src=\"https://contrib.rocks/image?repo=leizhenpeng/ChatGPT-PerfectUI\" /\u003e\n\u003c/a\u003e\n\n\n\n\n\n\n## License\nMIT © [river](./license)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fconnectai-e%2Fchatgpt-perfectui","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fconnectai-e%2Fchatgpt-perfectui","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fconnectai-e%2Fchatgpt-perfectui/lists"}