Closed Almas-Ali closed 6 months ago
Thanks for that. Could you possibly give it a PR?
Will try.
@Simatwa do you use discord or telegram? We may talk there. Drop your account handle here for sometime then delete it.
I prefer not to share bruh.
That's easy to fix: https://github.com/Simatwa/WebChatGPT/blob/d6a124a957fe70bee50e74635cdf0d889c4a1cd7/WebChatGPT/utils.py#L15
You're requesting a compressed response, but you're not decompressing it. Either comment this out (which might be detected by OpenAI) or decompress the response.
B
That's easy to fix:
You're requesting a compressed response, but you're not decompressing it. Either comment this out (which might be detected by OpenAI) or decompress the response.
Commenting it out might cause detection especially through user-agent leaks. Brotli auto-handles that if it's installed. I'll add it as one of the dependencies asap.
I tried brotli
last night but couldn’t make it work. Is it working now?
On this side. It's a yes.
I think you need to use
pydantic
to easily handle those JSON responses as a Python model. I am highly interested in this project and would like to test it out. I did think about this month but didn't get much time to do so.