JacobLinCool / ChatGPT-Agent

Deprecated! Library, CLI, and Discord bot for the unofficial ChatGPT API with progressive responses and more.
https://discord.com/oauth2/authorize?client_id=1049030945832972389&permissions=274877975552&scope=bot
MIT License
11 stars 2 forks source link

Server error #2

Open khoatran1602 opened 1 year ago

khoatran1602 commented 1 year ago

I'm using api route in Nextjs to send a message but when i use console.log to display to response, i received HTML, can u help me with this? This is the error `Server Error Error: <!DOCTYPE html>

Just a moment...

chat.openai.com

Checking if the site connection is secure

chat.openai.com needs to review the security of your connection before proceeding.
`
JacobLinCool commented 1 year ago

Hello.

OpenAI added Cloudflare protection, which cause the original authentication method to fail.

Maybe you can try to use this package (which uses puppeteer to simulate human behavior) to bypass the Cloudflare protection.

Sorry for the inconvenience.

zisra commented 1 year ago

@JacobLinCool How about support adding that cloudflare token?

khoatran1602 commented 1 year ago

thanks, no problem, just report for you to know