{"id":20083386,"url":"https://github.com/kang-theo/chatgpt-api-proxy","last_synced_at":"2025-08-03T19:33:49.694Z","repository":{"id":245969204,"uuid":"819675725","full_name":"kang-theo/chatgpt-api-proxy","owner":"kang-theo","description":"A proxy of OpenAI API based on node.","archived":false,"fork":false,"pushed_at":"2024-07-05T03:11:36.000Z","size":334,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-13T01:47:48.763Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/kang-theo.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":"2024-06-25T01:46:24.000Z","updated_at":"2024-07-05T03:11:40.000Z","dependencies_parsed_at":"2024-06-29T16:25:53.965Z","dependency_job_id":null,"html_url":"https://github.com/kang-theo/chatgpt-api-proxy","commit_stats":null,"previous_names":["kang-theo/chatgpt-api-proxy"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kang-theo%2Fchatgpt-api-proxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kang-theo%2Fchatgpt-api-proxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kang-theo%2Fchatgpt-api-proxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kang-theo%2Fchatgpt-api-proxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kang-theo","download_url":"https://codeload.github.com/kang-theo/chatgpt-api-proxy/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241515957,"owners_count":19975140,"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-13T15:46:58.247Z","updated_at":"2025-03-02T13:44:07.589Z","avatar_url":"https://github.com/kang-theo.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# chatgpt-api-proxy\n\nA proxy of OpenAI API based on node.\n\n## Run\n\n`.env.example` -\u003e `.env`\n\n```bash\nnpm install\n\n# development\nnpm run dev\n\n# production\nnpm run prod\nnpx pm2 list\nnpx pm2 restart \u003cid\u003e\nnpx pm2 stop \u003cid\u003e\nnpx pm2 delete \u003cid\u003e\n```\n\n## Test\n\nUsing Postman.\n\nServer-send Event does not support POST very well, so send GET instead.\n\n- Send a GET request to the route `/api/gpt/chat`\n- Set `option`: `{\"messages\": [ { \"role\": \"user\", \"content\": \"How are you?\" } ]}`\n- Add a header `x-auth-token: xxx` ，defined in `.env`\n\n```bash\n$ip:$port/api/gpt/chat?x-auth-token=xxx\u0026option={\"messages\": [ { \"role\": \"user\", \"content\": \"How are you?\" } ]}\n```\n\n## Deploy\n\n- Submitting deploy branch to GitHub will trigger the deployment of \"gpt-api-proxy\" to AWS EC2 (ci.yml).\n- Set the environment variables in `.env`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkang-theo%2Fchatgpt-api-proxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkang-theo%2Fchatgpt-api-proxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkang-theo%2Fchatgpt-api-proxy/lists"}