acheong08 / ChatGPT-to-API

Scalable unofficial ChatGPT API for production.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[ERR]api code 500

itzdrli opened this issue · comments

I've set the ACCESS_TOKENS and PUID right, but when I'm trying to connect the api, retruns code 500:

[GIN] 2023/06/15 - 15:32:37 | 500 |  205.402537ms |       127.0.0.1 | POST     "/v1/chat/completions"

It was working when I was using 0.2.x ver of c-t-a and also 0.3.x, and someday how it started returning 500.
ChatGPT-to-API ver: latest
go version: go version go1.20.5 linux/arm64
using self-built compiled binary file

Happened today too. Need to look into it

Edit: Seems to be IP based.

commented

It happened a few days ago, I changed the reverse proxy and it worked, but today it doesn’t work again. I want to deploy a reverse proxy myself, does anyone know how to do it?

https://github.com/acheong08/ChatGPT-Proxy-V4

But since this is IP based, it won't help much

commented

Will using the http_proxy variable help with this? I set it up, but Open AI still returns my exact IP in the 500 code body response.

commented

It happened a few days ago, I changed the reverse proxy and it worked, but today it doesn’t work again. I want to deploy a reverse proxy myself, does anyone know how to do it?

Were you able to bypass it?