{"id":14959242,"url":"https://github.com/gcloudlab/qa","last_synced_at":"2025-05-02T12:31:09.832Z","repository":{"id":130648791,"uuid":"599544082","full_name":"gcloudlab/QA","owner":"gcloudlab","description":"🤖部署在Vercel的ChatGPT镜像站点（gpt-3.5-turbo）","archived":false,"fork":false,"pushed_at":"2023-04-30T08:02:50.000Z","size":1736,"stargazers_count":140,"open_issues_count":0,"forks_count":62,"subscribers_count":4,"default_branch":"main","last_synced_at":"2024-10-10T09:04:50.688Z","etag":null,"topics":["astro","chatgpt","gpt-35-turbo","tsx","typescript","vercel"],"latest_commit_sha":null,"homepage":"https://a.mydog.buzz/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gcloudlab.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-09T11:13:35.000Z","updated_at":"2024-06-27T15:05:47.000Z","dependencies_parsed_at":null,"dependency_job_id":"e4789590-8c20-4392-bb8f-6f9502b5fd4f","html_url":"https://github.com/gcloudlab/QA","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/gcloudlab%2FQA","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gcloudlab%2FQA/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gcloudlab%2FQA/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gcloudlab%2FQA/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gcloudlab","download_url":"https://codeload.github.com/gcloudlab/QA/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219868376,"owners_count":16555873,"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":["astro","chatgpt","gpt-35-turbo","tsx","typescript","vercel"],"created_at":"2024-09-24T13:19:14.599Z","updated_at":"2024-10-10T09:08:32.933Z","avatar_url":"https://github.com/gcloudlab.png","language":"TypeScript","funding_links":["https://www.buymeacoffee.com/yesmore/gallery"],"categories":[],"sub_categories":[],"readme":"# QAChat\n\n\u003e [QAChat Pro](https://nav.navnav.top) 已经上线~ \n\n与 AI 对话，基于 ChatGPT [OpenAI GPT-3.5 Turbo API](https://platform.openai.com/docs/guides/chat)，并提供免费体验密钥，支持自定义 OpenAI API 密钥。\n\n在线体验：[https://qachat.cc](https://qachat.cc) (国内)；[https://qachats.vercel.app](https://qachats.vercel.app/) (国外)\n\n\u003e tip：欢迎加入 \u003ca href='https://t.me/yesmore_cc'\u003e\u003cimg src='https://img.shields.io/badge/-Juiçe的秘密基地-fff?logo=Telegram'/\u003e\u003c/a\u003e 与喵娘聊天~（集成ChatGPT机器人）\n\n![web](./web.png)\n\n## 特性\n\n- 快得批爆\n- 支持自定义 OpenAI API 密钥\n- 支持随机生成预设场景（100+）\n- 支持缓存会话\n\n特别提供预设文件（中/英文），方便开发者集成:\n\n**源文件**\n\n- [prompts.json](https://github.com/yesmore/QA/blob/main/src/data/prompts.json)\n- [prompts-zh.json](https://github.com/yesmore/QA/blob/main/src/data/prompts-zh.json)\n\n**Api调用**\n\n- [https://nb.js.cn/prompts](https://nb.js.cn/prompts)\n- [https://nb.js.cn/prompts-zh](https://nb.js.cn/prompts-zh)\n\n\u003e Api 会请求 Github 仓库源文件，速度比较慢，可下载源文件自部署接口。\n\n## 环境变量\n\n\u003e 请先将文件 `.env.example` 重命名为 `.env`, 并填写 `OPENAI_API_KEY` 变量值（此处申请[OpenAI](https://platform.openai.com/account/api-keys)）。\n\u003e \n\u003e 如果需要本地开发，请填写http代理 `HTTPS_PROXY` 变量。\n\n\n| 变量                  | 描述                                              | 示例                           |\n| --------------------- | ------------------------------------------------- | ------------------------------ |\n| `OPENAI_API_BASE_URL` | Custom base url for OpenAI API                    | `https://api.openai.com`       |\n| `OPENAI_API_KEY`      | Custom OpenAI API Key                             | `sk-eawsgfwegwaqeqtq234516512` |\n| `HTTPS_PROXY`         | Provide proxy for OpenAI API                      | `http://127.0.0.1:7890`        |\n| `SECRET_KEY`          | Secret string for the project                     | `123456`                       |\n| `HEAD_SCRIPTS`        | HTML Scripts                                      |                                |\n| `CODE`                | 授权码 (提供免费密钥且设置CODE值，则激活授权模式) | `123,124,125`                  |\n\n## 本地调试\n\n```bash\ngit clone https://github.com/yesmore/QA.git\n\ncp .env.example .env\n\npnpm i\n# 本地 Node.js 版本必须大于 18.+\npnpm dev\n```\n\n## 部署\n\n#### Vercel (推荐)\n\n[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fyesmore%2FQA\u0026env=OPENAI_API_KEY\u0026envDescription=OpenAI%20API%20Key\u0026envLink=https%3A%2F%2Fplatform.openai.com%2Faccount%2Fapi-keys)\n\n#### Netlify\n\n[![Deploy with Netlify](https://www.netlify.com/img/deploy/button.svg)](https://app.netlify.com/start/deploy?repository=https://github.com/yesmore/QA#OPENAI_API_KEY=\u0026HTTPS_PROXY=\u0026OPENAI_API_BASE_URL=\u0026HEAD_SCRIPTS=\u0026SECRET_KEY=\u0026OPENAI_API_MODEL=\u0026SITE_PASSWORD=)\n\n**分步部署教程：**\n\n- [Fork](https://github.com/yesmore/QA/fork) 此项目，前往 [https://app.netlify.com/start](https://app.netlify.com/start) 新建站点，选择你 `fork` 完成的项目，将其与 `GitHub` 帐户连接。\n- 选择要部署的分支，选择 `main` 分支， 在项目设置中配置环境变量，环境变量配置参考下文。\n- 选择默认的构建命令和输出目录，单击 `Deploy Site` 按钮开始部署站点。\n\n\n#### 部署在更多的服务器\n\n请参考官方部署文档：https://docs.astro.build/en/guides/deploy\n\n## 参考\n\n- [chatgpt-demo](https://github.com/ddiu8081/chatgpt-demo)\n- [Awesome ChatGPT Prompts](https://prompts.chat/)\n- [ChatGPT 中文调教指南](https://chatguide.plexpt.com/)\n\n## License \n\n[GPL](./LICENSE) © [yesmore](https://github.com/yesmore)\n\n\u003ca href=\"https://www.buymeacoffee.com/yesmore/gallery\" target=\"_blank\"\u003e\u003cimg src=\"https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png\" alt=\"Buy Me A Coffee\" style=\"height: 60px !important;width: 217px !important;\" \u003e\u003c/a\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgcloudlab%2Fqa","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgcloudlab%2Fqa","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgcloudlab%2Fqa/lists"}