acheong08 / ChatGPT-to-API

Scalable unofficial ChatGPT API for production.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error #01: write tcp 127.0.0.1:18080->127.0.0.1:46904: write: broken pipe

hongyi-zhao opened this issue · comments

See below:

werner@X10DAi:~/Public/repo/github.com/acheong08/ChatGPT-to-API.git$ $ http_proxy=socks5://127.0.0.1:18890 SERVER_PORT=18080 ./freechatgpt
[GIN-debug] [WARNING] Creating an Engine instance with the Logger and Recovery middleware already attached.

[GIN-debug] [WARNING] Running in "debug" mode. Switch to "release" mode in production.
 - using env:	export GIN_MODE=release
 - using code:	gin.SetMode(gin.ReleaseMode)

[GIN-debug] GET    /ping                     --> main.main.func1 (4 handlers)
[GIN-debug] PATCH  /admin/password           --> main.passwordHandler (5 handlers)
[GIN-debug] PATCH  /admin/tokens             --> main.tokensHandler (5 handlers)
[GIN-debug] PATCH  /admin/puid               --> main.puidHandler (5 handlers)
[GIN-debug] PATCH  /admin/openai             --> main.openaiHandler (5 handlers)
[GIN-debug] OPTIONS /v1/chat/completions      --> main.optionsHandler (4 handlers)
[GIN-debug] POST   /v1/chat/completions      --> main.nightmare (5 handlers)
[GIN-debug] GET    /v1/engines               --> main.engines_handler (5 handlers)
[GIN-debug] GET    /v1/models                --> main.engines_handler (5 handlers)
2023/07/31 17:25:20 75172 127.0.0.1:18080
[GIN] 2023/07/31 - 17:25:31 | 200 |  2.544762377s |       127.0.0.1 | POST     "/v1/chat/completions"
Error #01: write tcp 127.0.0.1:18080->127.0.0.1:46904: write: broken pipe

Any tips for the problem?

Regards,
Zhao

This issue is caused by gpt_academic itself, see here for more details.