koishijs / chatgpt-bot

AI conversation based on ChatGPT | 基于 ChatGPT 的 AI 对话机器人
https://chatgpt.koishi.chat
MIT License
70 stars 13 forks source link

fix: bypass cloudflare detection #37

Closed Seidko closed 1 year ago

Seidko commented 1 year ago

fix #35

Seidko commented 1 year ago

目前的token方案是方案之一,在下一个(可能?)的pr会加上puppeteer支持。

Seidko commented 1 year ago

手机误操作💦

另外,现在我还不太确定它在其他环境下的可用性,在merge前大家pull下来先试试

稍后会加上文档

Seidko commented 1 year ago

今天OpenAI服务器一直 status code 429,我也找不到是什么问题。我删去了 accept-language ,但目前无法测试其可用性,请各位帮忙测试一下,非常感谢!

MaikoTan commented 1 year ago

According to other similar projects, Cloudflare requires cookie, referer and user-agent. I will test this later if I have time.

Also, 429 means that you request too many. I thought the only solution was waiting.

根据隔壁的项目,云炽焰要求 小饼干参考人使用者-代理。我会在之后有时间测试这个。

而且,429的意思是你请求太多了。我想唯一的解决方案是等待。

MaikoTan commented 1 year ago

LGTM

The last question is, should user-agent be noted in the document as well? Is our default value widely useful?

看起来不错

最后的问题是,也应该记下用户-代理人在文档里吗?我们的默认值广泛有用吗?

shigma commented 1 year ago

released 1.4.0