xqdoo00o / ChatGPT-to-API

Scalable unofficial ChatGPT API for production.
650 stars 129 forks source link

gpt官方好像加了什么验证,有些号可以正常获取到token,但是不能正常回复问题,返回状态码500,大佬可以解决吗 #14

Closed gkingt closed 10 months ago

xqdoo00o commented 10 months ago

3.5吗,那用最新更新的,要arkose了

gkingt commented 10 months ago

3.5吗,那用最新更新的,要arkose了

必须需要har文件了吗,一直报获取arkose失败,缺少har文件,如果要放置多个账号,har文件应该怎么配置

bi1101 commented 10 months ago

I believe you have to log out of your ChatGPT Account, tun on preserve log (in network tab) and log in again to save the arkose in the HAR file

xqdoo00o commented 10 months ago

3.5吗,那用最新更新的,要arkose了

必须需要har文件了吗,一直报获取arkose失败,缺少har文件,如果要放置多个账号,har文件应该怎么配置

跟文档里原有gpt-4的配置har方式一样的,可以看下

gkingt commented 10 months ago

3.5吗,那用最新更新的,要arkose了

必须需要har文件了吗,一直报获取arkose失败,缺少har文件,如果要放置多个账号,har文件应该怎么配置

跟文档里原有gpt-4的配置har方式一样的,可以看下

已解决,我用了我gpt4的那个号的har文件,然后解决了这个问题,多个号都正常使用

xqdoo00o commented 10 months ago

嗯,3.5和4的har是可以通用的,目前区分开了 不通用了。

zeushera140 commented 10 months ago

嗯,3.5和4的har是可以通用的

你好,大佬。打扰了。首先表示感谢,不过有个疑问: .har文件是放到ChatGPT-to-API 根目录吗?很奇怪,我放了,账号获取auth arkose成功了,但是尝试提交请求给chatgpt的时候,报错,说需要valid .har file

./freechatgpt success read auth arkose Updating access token for zeushera140@live.com Success! Updating access token for openai_chatgpt_002@outlook.com Success! Updating access token for openai_chatgpt_003@outlook.com Success! Updating access token for openai_chatgpt_004@outlook.com Success! Updating access token for openai_chatgpt_005@outlook.com Success! [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.

[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] OPTIONS /v1/chat/completions --> main.optionsHandler (4 handlers) [GIN-debug] POST /v1/chat/completions --> main.nightmare (5 handlers) 2023/10/28 19:50:28 2787687 127.0.0.1:8080 Error getting Arkose token: a valid HAR file required [GIN] 2023/10/28 - 19:51:05 | 500 | 1.420389768s | 127.0.0.1 | POST "/v1/chat/completions"

gkingt commented 10 months ago

嗯,3.5和4的har是可以通用的

你好,大佬。打扰了。首先表示感谢,不过有个疑问:

.har文件是放到ChatGPT-to-API 根目录吗?很奇怪,我放了,账号获取auth arkose成功了,但是尝试提交请求给chatgpt的时候,报错,说需要valid .har file

./freechatgpt

success read auth arkose

Updating access token for zeushera140@live.com

Success!

Updating access token for openai_chatgpt_002@outlook.com

Success!

Updating access token for openai_chatgpt_003@outlook.com

Success!

Updating access token for openai_chatgpt_004@outlook.com

Success!

Updating access token for openai_chatgpt_005@outlook.com

Success!

[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] OPTIONS /v1/chat/completions --> main.optionsHandler (4 handlers)

[GIN-debug] POST /v1/chat/completions --> main.nightmare (5 handlers)

2023/10/28 19:50:28 2787687 127.0.0.1:8080

Error getting Arkose token: a valid HAR file required

[GIN] 2023/10/28 - 19:51:05 | 500 | 1.420389768s | 127.0.0.1 | POST "/v1/chat/completions"

跟freechatgpt文件同一级目录

zeushera140 commented 10 months ago

嗯,3.5和4的har是可以通用的

你好,大佬。打扰了。首先表示感谢,不过有个疑问: .har文件是放到ChatGPT-to-API 根目录吗?很奇怪,我放了,账号获取auth arkose成功了,但是尝试提交请求给chatgpt的时候,报错,说需要valid .har file ./freechatgpt success read auth arkose Updating access token for zeushera140@live.com Success! Updating access token for openai_chatgpt_002@outlook.com Success! Updating access token for openai_chatgpt_003@outlook.com Success! Updating access token for openai_chatgpt_004@outlook.com Success! Updating access token for openai_chatgpt_005@outlook.com Success! [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] OPTIONS /v1/chat/completions --> main.optionsHandler (4 handlers) [GIN-debug] POST /v1/chat/completions --> main.nightmare (5 handlers) 2023/10/28 19:50:28 2787687 127.0.0.1:8080 Error getting Arkose token: a valid HAR file required [GIN] 2023/10/28 - 19:51:05 | 500 | 1.420389768s | 127.0.0.1 | POST "/v1/chat/completions"

跟freechatgpt文件同一级目录

那我没放错,很奇怪。报500.

gkingt commented 10 months ago

嗯,3.5和4的har是可以通用的

你好,大佬。打扰了。首先表示感谢,不过有个疑问:

.har文件是放到ChatGPT-to-API 根目录吗?很奇怪,我放了,账号获取auth arkose成功了,但是尝试提交请求给chatgpt的时候,报错,说需要valid .har file

./freechatgpt

success read auth arkose

Updating access token for zeushera140@live.com

Success!

Updating access token for openai_chatgpt_002@outlook.com

Success!

Updating access token for openai_chatgpt_003@outlook.com

Success!

Updating access token for openai_chatgpt_004@outlook.com

Success!

Updating access token for openai_chatgpt_005@outlook.com

Success!

[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] OPTIONS /v1/chat/completions --> main.optionsHandler (4 handlers)

[GIN-debug] POST /v1/chat/completions --> main.nightmare (5 handlers)

2023/10/28 19:50:28 2787687 127.0.0.1:8080

Error getting Arkose token: a valid HAR file required

[GIN] 2023/10/28 - 19:51:05 | 500 | 1.420389768s | 127.0.0.1 | POST "/v1/chat/completions"

跟freechatgpt文件同一级目录

那我没放错,很奇怪。报500.

检查自己的har文件是否符合项目要求

zeushera140 commented 10 months ago

嗯,3.5和4的har是可以通用的

你好,大佬。打扰了。首先表示感谢,不过有个疑问:

.har文件是放到ChatGPT-to-API 根目录吗?很奇怪,我放了,账号获取auth arkose成功了,但是尝试提交请求给chatgpt的时候,报错,说需要valid .har file

./freechatgpt

success read auth arkose

Updating access token for zeushera140@live.com

Success!

Updating access token for openai_chatgpt_002@outlook.com

Success!

Updating access token for openai_chatgpt_003@outlook.com

Success!

Updating access token for openai_chatgpt_004@outlook.com

Success!

Updating access token for openai_chatgpt_005@outlook.com

Success!

[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] OPTIONS /v1/chat/completions --> main.optionsHandler (4 handlers)

[GIN-debug] POST /v1/chat/completions --> main.nightmare (5 handlers)

2023/10/28 19:50:28 2787687 127.0.0.1:8080

Error getting Arkose token: a valid HAR file required

[GIN] 2023/10/28 - 19:51:05 | 500 | 1.420389768s | 127.0.0.1 | POST "/v1/chat/completions"

跟freechatgpt文件同一级目录

那我没放错,很奇怪。报500.

检查自己的har文件是否符合项目要求

搞定了,除了要记录登录的数据,跟gpt3.5对话的数据也需要记录。感谢

bi1101 commented 10 months ago

What does the error 500 say? Detected unusual activity? If so, it could be ip blocked, you must use proxy then

But from the log it seems you are getting the arkose HAR wrong

You must turn on preserve log in network tab to log the arkose in HAR

Log out, turn on presever log, login again and save the HAR file

zeushera140 commented 10 months ago

What does the error 500 say? Detected unusual activity? If so, it could be ip blocked, you must use proxy then

But from the log it seems you are getting the arkose HAR wrong

You must turn on preserve log in network tab to log the arkose in HAR

Log out, turn on presever log, login again and save the HAR file

fixed, but still not stable, got arkose error sometimes. however, it's ok now. thanks.

xqdoo00o commented 10 months ago

What does the error 500 say? Detected unusual activity? If so, it could be ip blocked, you must use proxy then But from the log it seems you are getting the arkose HAR wrong You must turn on preserve log in network tab to log the arkose in HAR Log out, turn on presever log, login again and save the HAR file

fixed, but still not stable, got arkose error sometimes. however, it's ok now. thanks.

你可以尝试下最新版,支持har池了,也许访问量大的时候会好些。用不同的浏览器或者指纹浏览器 生成一些不同特征har文件,放到harPool文件夹里。

zeushera140 commented 10 months ago

What does the error 500 say? Detected unusual activity? If so, it could be ip blocked, you must use proxy then But from the log it seems you are getting the arkose HAR wrong You must turn on preserve log in network tab to log the arkose in HAR Log out, turn on presever log, login again and save the HAR file

fixed, but still not stable, got arkose error sometimes. however, it's ok now. thanks.

你可以尝试下最新版,支持har池了,也许访问量大的时候会好些。用不同的浏览器或者指纹浏览器 生成一些不同特征har文件,放到harPool文件夹里。

NB,谢谢