-
Notifications
You must be signed in to change notification settings - Fork 9
Same Issue is back. #5
Comments
@diezo I believe I identified the root cause of this issue. I have two accounts. The request from the older one against https://chat.openai.com/backend-api/conversation returns EventStream with AI response. The old account works with your library. The request from the younger account returns json like
} And then response is provided via WebSocket base64 encoded. |
@vlna oh thanks a lot! I think it's easier to fix this issue now. i'll update you on this soon. |
@diezo Would you be able to share a date on when you think it's done? |
@justin321123 I'm currently focused on other projects at the moment. But I'll do my best to get this done by the end of this week. |
Thanks alot. |
I've encountered a similar issue, but the situation is not necessarily related to the account itself. In some instances, for the same account, the return is over SSE (Server-Sent Events), while in others, it's over WSS (WebSocket Secure). It's crucial for the code to be adaptable to both scenarios and handle them appropriately. |
@diezo ? |
@justin321123 Working on it. I'll update you once I push the changes. |
This has been open for a month, any updates. Or is this a given-up project? |
File "/home/container/.local/lib/python3.12/site-packages/discord/ext/commands/core.py", line 235, in wrapped ret = await coro(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/container/bot.py", line 252, in chatgpt response = conversation.prompt(question) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/container/.local/lib/python3.12/site-packages/ProGPT/Conversation.py", line 91, in prompt if data["message"]["status"] != "finished_successfully": ~~~~^^^^^^^^^^^ KeyError: 'message'
The text was updated successfully, but these errors were encountered: