利用免登录ChatGPT网站提供的无限制免费GPT-3.5-Turbo API服务。
由于OpenAI频繁更新,我再次创建了一个新版本,该版本基于DuckDuckGo,是GPT-3.5-Turbo-0125
。
仓库:https://github.com/missuo/FreeDuckDuckGo
npm install node app.js
docker run -p 3040:3040 ghcr.io/missuo/freegpt35
docker run -p 3040:3040 missuo/freegpt35
mkdir freegpt35 && cd freegpt35 wget -O compose.yaml https://raw.githubusercontent.com/missuo/FreeGPT35/main/compose/compose.yaml docker compose up -d
mkdir freegpt35 && cd freegpt35 wget -O compose.yaml https://raw.githubusercontent.com/missuo/FreeGPT35/main/compose/compose_with_next_chat.yaml docker compose up -d
部署后,您可以直接访问http://[IP]:3040/v1/chat/completions
使用API。或使用http://[IP]:3000
直接使用ChatGPT-Next-Web。
mkdir freegpt35 && cd freegpt35 wget -O compose.yaml https://raw.githubusercontent.com/missuo/FreeGPT35/main/compose/compose_with_lobe_chat.yaml docker compose up -d
部署后,您可以直接访问http://[IP]:3040/v1/chat/completions
使用API。或使用http://[IP]:3210
直接使用lobe-chat。
location ^~ / { proxy_pass http://127.0.0.1:3040; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header REMOTE-HOST $remote_addr; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; proxy_http_version 1.1; add_header Cache-Control no-cache; proxy_cache off; proxy_buffering off; chunked_transfer_encoding on; tcp_nopush on; tcp_nodelay on; keepalive_timeout 300; }
upstream freegpt35 { server 1.1.1.1:3040; server 2.2.2.2:3040; } location ^~ / { proxy_pass http://freegpt35; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header REMOTE-HOST $remote_addr; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; proxy_http_version 1.1; add_header Cache-Control no-cache; proxy_cache off; proxy_buffering off; chunked_transfer_encoding on; tcp_nopush on; tcp_nodelay on; keepalive_timeout 300; }
您无需传递Authorization,当然,您也可以随意传递任何字符串。
curl http://127.0.0.1:3040/v1/chat/completions \ -H "Content-Type: application/json" \ -H "Authorization: Bearer any_string_you_like" \ -d '{ "model": "gpt-3.5-turbo", "messages": [ { "role": "user", "content": "Hello!" } ], "stream": true }'
您可以在任何应用程序中使用它,例如OpenCat、Next-Chat、Lobe-Chat、Bob等。随意填写任何字符串作为API密钥,例如gptyyds
。
AGPL 3.0 许可证