terry3041 / pyChatGPT

An unofficial Python wrapper for OpenAI's ChatGPT API
GNU General Public License v3.0
1.35k stars 252 forks source link

Cloudflare challenge failed #23

Closed Hao1617 closed 1 year ago

Hao1617 commented 1 year ago

console output

ValueError: Cloudflare challenge failed:

{"user":{"id":"","name":"","email":"","image":"","picture":"","groups":[],"features":[]},"expires":"2023-01-13T02:58:04.509Z","accessToken":""}

Note: personal information has been deleted.

terry3041 commented 1 year ago

It should be related to https://github.com/terry3041/pyChatGPT/blob/c631973479f2bca6e8c554c203321d3fa6aa3c92/src/pyChatGPT/pyChatGPT.py#L276-L279

Can you go to https://chat.openai.com/api/auth/session and take a screenshot when you right click and click Inspect?

Like this one image

Hao1617 commented 1 year ago

image

terry3041 commented 1 year ago

Just release v0.3.8. Please check and see if you still have any problems. Thanks!

Hao1617 commented 1 year ago

Just release v0.3.8. Please check and see if you still have any problems. Thanks!

thanks

Hao1617 commented 1 year ago

只需发布 v0.3.8。请检查您是否还有问题。谢谢!

Can the content here in the console be output to the console in real-time, one word at a time, like ChatGPT?

Hao1617 commented 1 year ago

Should I use it like this?

image

terry3041 commented 1 year ago

Should I use it like this?

It looks good to me.

terry3041 commented 1 year ago

Can the content here in the console be output to the console in real-time, one word at a time, like ChatGPT?

I am unable to achieve this for now but I will see it as a feature request.

Hao1617 commented 1 year ago

控制台这里的内容能不能像ChatGPT一样,实时一个字一个字的输出到控制台?

我现在无法实现这一点,但我会将其视为功能请求。

Hello, can I try running it on the server? What are the things to consider?

Hao1617 commented 1 year ago

Is it currently stable?

prash08642 commented 1 year ago
image

Facing cloudflare issue. Can you suggest me something for the same.