{"id":13455613,"url":"https://github.com/missuo/FreeGPT35","last_synced_at":"2025-03-24T08:33:15.747Z","repository":{"id":231167418,"uuid":"781110109","full_name":"missuo/FreeGPT35","owner":"missuo","description":"Utilize the unlimited free GPT-3.5-Turbo API service provided by the login-free ChatGPT Web.","archived":true,"fork":false,"pushed_at":"2024-04-26T00:14:11.000Z","size":725,"stargazers_count":3348,"open_issues_count":18,"forks_count":1018,"subscribers_count":19,"default_branch":"main","last_synced_at":"2025-01-18T22:37:37.310Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/missuo.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}},"created_at":"2024-04-02T19:09:24.000Z","updated_at":"2025-01-18T18:32:01.000Z","dependencies_parsed_at":"2024-04-26T01:29:02.599Z","dependency_job_id":null,"html_url":"https://github.com/missuo/FreeGPT35","commit_stats":null,"previous_names":["missuo/freegpt35"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/missuo%2FFreeGPT35","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/missuo%2FFreeGPT35/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/missuo%2FFreeGPT35/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/missuo%2FFreeGPT35/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/missuo","download_url":"https://codeload.github.com/missuo/FreeGPT35/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245235696,"owners_count":20582288,"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-07-31T08:01:08.102Z","updated_at":"2025-03-24T08:33:15.406Z","avatar_url":"https://github.com/missuo.png","language":"JavaScript","funding_links":[],"categories":["JavaScript","A01_文本生成_文本对话"],"sub_categories":["大语言对话模型及数据"],"readme":"[![Docker Pulls][1]](https://hub.docker.com/r/missuo/freegpt35)\n\n[1]: https://img.shields.io/docker/pulls/missuo/freegpt35?logo=docker\n\nUtilize the unlimited free **GPT-3.5-Turbo** API service provided by the login-free ChatGPT Web.\n\n**Due to the frequent updates of OpenAI, I have once again created a new version, which is based on DuckDuckGo, and is `GPT-3.5-Turbo-0125`.** \n\nRepo: [https://github.com/missuo/FreeDuckDuckGo](https://github.com/missuo/FreeDuckDuckGo)\n\n## Deploy\n### Node\n\n```bash\nnpm install\nnode app.js\n```\n### Docker\n\n```bash\ndocker run -p 3040:3040 ghcr.io/missuo/freegpt35\n```\n\n```bash\ndocker run -p 3040:3040 missuo/freegpt35\n```\n\n### Docker Compose\n\n#### Only FreeGPT35 Service\n\n```bash\nmkdir freegpt35 \u0026\u0026 cd freegpt35\nwget -O compose.yaml https://raw.githubusercontent.com/missuo/FreeGPT35/main/compose/compose.yaml\ndocker compose up -d\n```\n\n#### FreeGPT35 Service with [ChatGPT-Next-Web](https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web):\n\n```bash\nmkdir freegpt35 \u0026\u0026 cd freegpt35\nwget -O compose.yaml https://raw.githubusercontent.com/missuo/FreeGPT35/main/compose/compose_with_next_chat.yaml\ndocker compose up -d\n```\n\nAfter deployment, you can directly access `http://[IP]:3040/v1/chat/completions` to use the API. Or use `http://[IP]:3000` to directly use **ChatGPT-Next-Web**.\n\n#### FreeGPT35 Service with [lobe-chat](https://github.com/lobehub/lobe-chat):\n\n```bash\nmkdir freegpt35 \u0026\u0026 cd freegpt35\nwget -O compose.yaml https://raw.githubusercontent.com/missuo/FreeGPT35/main/compose/compose_with_lobe_chat.yaml\ndocker compose up -d\n```\n\nAfter deployment, you can directly access `http://[IP]:3040/v1/chat/completions` to use the API. Or use `http://[IP]:3210` to directly use **lobe-chat**.\n\n### Nginx Reverse Proxy\n\n```nginx\nlocation ^~ / {\n        proxy_pass http://127.0.0.1:3040; \n        proxy_set_header Host $host; \n        proxy_set_header X-Real-IP $remote_addr; \n        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; \n        proxy_set_header REMOTE-HOST $remote_addr; \n        proxy_set_header Upgrade $http_upgrade; \n        proxy_set_header Connection \"upgrade\"; \n        proxy_http_version 1.1; \n        add_header Cache-Control no-cache; \n        proxy_cache off;\n        proxy_buffering off;\n        chunked_transfer_encoding on;\n        tcp_nopush on;\n        tcp_nodelay on;\n        keepalive_timeout 300;\n    }\n```\n\n### Nginx Reverse Proxy with Load Balancer\n\n```nginx\nupstream freegpt35 {\n        server 1.1.1.1:3040;\n        server 2.2.2.2:3040;\n}\n\nlocation ^~ / {\n        proxy_pass http://freegpt35; \n        proxy_set_header Host $host; \n        proxy_set_header X-Real-IP $remote_addr; \n        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; \n        proxy_set_header REMOTE-HOST $remote_addr; \n        proxy_set_header Upgrade $http_upgrade; \n        proxy_set_header Connection \"upgrade\"; \n        proxy_http_version 1.1; \n        add_header Cache-Control no-cache; \n        proxy_cache off;\n        proxy_buffering off;\n        chunked_transfer_encoding on;\n        tcp_nopush on;\n        tcp_nodelay on;\n        keepalive_timeout 300;\n    }\n```\n\n## Request Example\n\n**You don't have to pass Authorization, of course, you can also pass any string randomly.**\n\n```bash\ncurl http://127.0.0.1:3040/v1/chat/completions \\\n  -H \"Content-Type: application/json\" \\\n  -H \"Authorization: Bearer any_string_you_like\" \\\n  -d '{\n    \"model\": \"gpt-3.5-turbo\",\n    \"messages\": [\n      {\n        \"role\": \"user\",\n        \"content\": \"Hello!\"\n      }\n    ],\n    \"stream\": true\n    }'\n```\n\n## Compatibility\n\nYou can use it in any app, such as OpenCat, Next-Chat, Lobe-Chat, Bob, etc. Feel free to fill in an **API Key** with any string, for example, `gptyyds`.\n\n### Bob\n![Bob](./img/bob.png)\n\n## Credits\n- Forked From: [https://github.com/skzhengkai/free-chatgpt-api](https://github.com/skzhengkai/free-chatgpt-api)\n- Original Author: [https://github.com/PawanOsman/ChatGPT](https://github.com/PawanOsman/ChatGPT)\n\n## License\nAGPL 3.0 License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmissuo%2FFreeGPT35","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmissuo%2FFreeGPT35","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmissuo%2FFreeGPT35/lists"}