Closed pqr29 closed 1 year ago
Same problem
Hi guys, I was able to get the code working by adjusting line 415 EdgeGPT.py .
I added the .get method to the .struct which solved the error. here is the adjusted code snippet:
self.request = _ChatHubRequest( conversation_signature=conversation.struct.get("conversationSignature"), client_id=conversation.struct["clientId"], conversation_id=conversation.struct["conversationId"], )
Has anyone got the bot functioning/responding on their discord server?
PS C:\Users\usuario\Downloads\BingGPT-Discord-Bot> python src/bot.py Traceback (most recent call last): File "C:\Users\usuario\Downloads\BingGPT-Discord-Bot\src\bot.py", line 44, in
gptbot = Chatbot(cookie_path='cookies.json')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\usuario\Downloads\BingGPT-Discord-Bot\src\EdgeGPT.py", line 603, in init
self.chat_hub: _ChatHub = _ChatHub(
^^^^^^^^^
File "C:\Users\usuario\Downloads\BingGPT-Discord-Bot\src\EdgeGPT.py", line 415, in init
conversation_signature=conversation.struct["conversationSignature"],