{"id":14989492,"url":"https://github.com/chenweiyi/ai-assistant","last_synced_at":"2025-06-29T15:02:06.940Z","repository":{"id":139026709,"uuid":"609533768","full_name":"chenweiyi/ai-assistant","owner":"chenweiyi","description":"A chatbot powered by GPT for AI assistance⚡️","archived":false,"fork":false,"pushed_at":"2024-08-04T00:36:05.000Z","size":5814,"stargazers_count":21,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"dev","last_synced_at":"2025-06-29T15:01:46.451Z","etag":null,"topics":["chatgpt","koa2","lerna","less","pnpm","react","typescript","umijs","unocss"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/chenweiyi.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-03-04T13:20:52.000Z","updated_at":"2025-02-15T13:00:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"3686aa14-0d5d-44c2-b448-cfcd3a1656fc","html_url":"https://github.com/chenweiyi/ai-assistant","commit_stats":{"total_commits":85,"total_committers":2,"mean_commits":42.5,"dds":0.04705882352941182,"last_synced_commit":"e22e27a7bae6ded302ff459b6c3b5d84e23720f9"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/chenweiyi/ai-assistant","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chenweiyi%2Fai-assistant","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chenweiyi%2Fai-assistant/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chenweiyi%2Fai-assistant/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chenweiyi%2Fai-assistant/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chenweiyi","download_url":"https://codeload.github.com/chenweiyi/ai-assistant/tar.gz/refs/heads/dev","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chenweiyi%2Fai-assistant/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262614453,"owners_count":23337275,"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":["chatgpt","koa2","lerna","less","pnpm","react","typescript","umijs","unocss"],"created_at":"2024-09-24T14:18:27.308Z","updated_at":"2025-06-29T15:02:06.158Z","avatar_url":"https://github.com/chenweiyi.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[中文文档](./README_zh.md)\n\n# An AI Assistant\n\nThis is an AI project that integrates various open source AI capabilities.\n\n## Project Introduction\n\n![Screenshot](Screenshots/jietu3.png)\n\nLet everyone have the ability to use AI.\n\n## Node Version\n\nNode version \u003e= 18 is required.\n\n## Environment Variables\n\nIn root directory, copy an `.env.example` file and rename it to `.env`, then modify its fields:\n\n```\n# Server Port, eg: 3000\nSERVER_PORT=3000\n\n# TIMEOUT Time,eg: 2 * 60 * 1000\nREQUEST_TIMEOUT=2 * 60 * 1000\n\n# check api request timeout, eg: 10 * 1000\nCHECK_REQUEST_TIMEOUT=10 * 1000\n\n# ==== vendor config start ===\n\n# api2d station url\nVENDOR_api2d_net_url=https://api.api2d.com\n# api2d station user profile url\nVENDOR_api2d_net_userProfileUrl=/user/profile\n# api2d api token, detial in https://api2d.com/wiki/siteapi\nVENDOR_api2d_net_apiToken=xxx\n\n# ==== vendor config end ===\n\n# CUSTOM_PROXY represents an http proxy. If left blank or not passed any value,\n# it means that the http proxy is not enabled.\n# eg: http://127.0.0.1:7890\nCUSTOM_PROXY=\n```\n\n- `CUSTOM_PROXY`: represents an http proxy. If left blank or not passed any value, it means that the http proxy is not enabled.\n- `SERVER_PORT`: server port, eg: 3000\n- `REQUEST_TIMEOUT`: flow request timeout, eg: 2 * 60 * 1000\n- `CHECK_REQUEST_TIMEOUT`: normal response api request timeout, eg: 10 * 1000\n- `VENDOR_api2d_net_url`: api2d station url, eg: https://api.api2d.com\n- `VENDOR_api2d_net_userProfileUrl`: api2d station user profile url, eg: /user/profile\n- `VENDOR_api2d_net_apiToken`: api2d api token, detial in https://api2d.com/wiki/siteapi\n\n\n## How to Develop?\n\n1. Add a new [.env](#environment-variables) file locally and configure the corresponding parameters.\n1. First install dependencies, install code using `pnpm i` in the root directory.\n1. Start the project: execute `npm run dev` in the root directory.\n1. Access the project address: `http://localhost:3000`.\n\n## How to Use?\n\n### Method 1: One-click Startup\n\nExecute `npm start` in the root directory.\n\n### Method 2: Separate Front-end and Back-end Startup\n\n1. Start front-end:`pnpm run dev:fe`.\n2. Start back-end:`pnpm run dev:be`.\n3. Access front-end project address, eg:`http://localhost:8000`.\n\n### Method 3: Get from Docker\n\n[Get from here](https://hub.docker.com/r/cwy829/ai-assistant)\n\n#### Get Image\n\n```\ndocker image pull cwy829/ai-assistant\n```\n\n#### Start Container\n\n\u003e In the command below, `~/docker-data/.env` needs to be replaced with the address where your `.env` file is located.\n\u003e For more information on `.env`, please refer to [here](#environment-variables).\n\n```\ndocker run -d -p 3000:3000 -v ~/docker-data/.env:/ai-assistant/.env --name ai-assistant cwy829/ai-assistant\n```\n\n#### Docker client startup configuration\n\n![docker run](Screenshots/docker-run.png)\n\nFor more information about Docker, please refer to the [documentation](./DOCKERHELP.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchenweiyi%2Fai-assistant","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchenweiyi%2Fai-assistant","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchenweiyi%2Fai-assistant/lists"}