知乎专栏 |
docker login docker build --tag netkiller/chatgpt:1.0.1 . docker push netkiller/chatgpt docker stop chatgpt docker rm chatgpt docker run --name chatgpt --restart=unless-stopped -d --network host \ -e OPENAI_API_KEY=sk-1xLgiKe7G7rhCGLDYUkxtXZHHi5NiT3BlbkFJTRBjEsKNNj4 \ netkiller/chatgpt:1.0.1 docker logs -f chatgpt
curl -XPOST -d "query=深圳在哪里" http://127.0.0.1:8080/query