chatgpt api 代理
docker run -d -p 80:80 --name chatgpt-api-proxy mirrors2/chatgpt-api-proxy
version: '3.7'
services:
chatgpt-api-proxy:
image: mirrors2/chatgpt-api-proxy
container_name: chatgpt-api-proxy
restart: unless-stopped
ports: 80:80
curl https://your.domains/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $OPENAI_API_KEY" \
-d '{
"model": "gpt-3.5-turbo",
"messages": [{"role": "user", "content": "我爱你,翻译成英语"}]
}'
MIT License.