linweiyuan / go-chatgpt-api

一个尝试绕过 Cloudflare 来使用 ChatGPT 接口的程序
MIT License
1.43k stars 445 forks source link

auto refresh PUID #209

Closed maxduke closed 1 year ago

maxduke commented 1 year ago

Enable auto refresh of PUID.

Two new environment variables are added:

linweiyuan commented 1 year ago

这样写,PUID 并不会更新到

maxduke commented 1 year ago

看到了init的时候PUID就固定了

zexry619 commented 1 year ago

Is this related to the "Failed To Get Arkose Token" issue?

I use Arkose token from fakeopen.

But it still shows the error "Failed To get arkose token"

If this is related to the problem is there a solution for accounts with google login?

linweiyuan commented 1 year ago

Not related.

"Failed to get arkose token" -> update GO_CHATGPT_API_ARKOSE_TOKEN_URL to https://arkose-token.tms.im, this will temporary fix it, but there's no stable solution to fix this so far.

Google login -> have no idea how to do.

zexry619 commented 1 year ago

It can work fine.

I asked one of the contributors here, there will be an update to fix captcha problems with the captcha resolver.

Can this be realized?

zexry619 commented 1 year ago

and is this PUID important?

How to get PUID manually?

And what does it actually do?

linweiyuan commented 1 year ago

Not sure the captcha resolver, looks complicated, still in discussion.

The PUID is to bypass IP based rate limit (cannot bypass gpt-4 25/3 hours), like a public api with many requests, if you don't have such a volume, PUID can be ignore.

zexry619 commented 1 year ago

Does this mean that accounts using Google cannot fill in this PUID section?

Thank you in advance.

linweiyuan commented 1 year ago

No, when you open ChatGPT, F12, you will find it in the /models response cookies, no matter normal account, Google or Microsoft.

2023-07-07_22-57

zexry619 commented 1 year ago

I see, so I can input this value in my Docker compose?

linweiyuan commented 1 year ago

Yes.