Integration-Automation / ReEdgeGPT

Microsoft's Bing Chat AI
MIT License
163 stars 27 forks source link

KeyError: 'conversationSignature' -- is the wss://sydney resource killed? #22

Closed fractaldna22 closed 1 year ago

fractaldna22 commented 1 year ago
File "C:\Users\psych\AppData\Local\Programs\Python\Python311\Lib\site-packages\re_edge_gpt\re_edge_gpt.py", line 23, in __init__
    self.chat_hub: ChatHub = ChatHub(
                             ^^^^^^^^
  File "C:\Users\psych\AppData\Local\Programs\Python\Python311\Lib\site-packages\re_edge_gpt\chathub.py", line 47, in __init__
    conversation_signature=conversation.struct["conversationSignature"],
                           ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
KeyError: 'conversationSignature'

Get this on both EdgeGPT and ReEdgeGPT. my bot comradeGPT on discord which was the best bot is no longer working i have no idea what to do

JE-Chen commented 1 year ago

Look #17

fractaldna22 commented 1 year ago

ooo thank youu.. i see the signature

On Wed, 4 Oct 2023 at 23:25, JeffreyChen @.***> wrote:

Look #17 https://github.com/Integration-Automation/ReEdgeGPT/issues/17

— Reply to this email directly, view it on GitHub https://github.com/Integration-Automation/ReEdgeGPT/issues/22#issuecomment-1747977210, or unsubscribe https://github.com/notifications/unsubscribe-auth/AI4YF7TNOMFNJ46TFEMBFI3X5YSBJAVCNFSM6AAAAAA5TPXUICVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONBXHE3TOMRRGA . You are receiving this because you authored the thread.Message ID: @.***>

JE-Chen commented 1 year ago

Can you use EdgeGPT now ?

fractaldna22 commented 1 year ago

,

fractaldna22 commented 1 year ago

it worrrks

image

actually no..

image

i manually entered the conversation ID from the link you posted but it doesnt work for chat.. but image creator did work for the first time since dalle3 came out so thats a start.

There's actually no conversationSignature on the link https://edgeservices.bing.com/edgesvc/turing/conversation/create only

{
    "conversationId": "<value>",
    "clientId": "<value>",
    "result": {
        "value": "Success",
        "message": null
    }
}
fractaldna22 commented 1 year ago

i did get a bunch of past conversationSignatures on this but i have no idea how to use this https://www.bing.com/turing/conversation/chats

JE-Chen commented 1 year ago

Can't use old conversationSignatures, Every chat have specific conversationSignatures, Sometime no conversationSignatures is microsoft server problem, Sometime no conversationSignatures it's mean microsoft block you (I don't know how long).

JE-Chen commented 1 year ago

Until this link https://edgeservices.bing.com/edgesvc/turing/conversation/create have conversationSignatures And like this json then you can use EdgeGPT

{
    "conversationSignatures": "<value>",
    "conversationId": "<value>",
    "clientId": "<value>",
    "result": {
        "value": "Success",
        "message": null
    }
}
JE-Chen commented 1 year ago

I will PR try to fix this wait me 0.5 ~ 2 hr

JE-Chen commented 1 year ago

@fractaldna22 Update your ReEdgeGPT and make sure version is re_edge_gpt 0.0.7 then try again

fractaldna22 commented 1 year ago

ok i will try that. I tried manually inputting the values of the last conversation on that page and it wasnt responding to chats, but it was responding to buttons..

image XD

I have the Windows 11 Copilot by the way and bing works everywhere else so i dont think microsoft blocked me but im going to update this and try again, thanks for helping.

ill let you know shortly.

fractaldna22 commented 1 year ago

chat now works! but now image creator doesnt work. redirect fail, and also in chat.. image

image

fractaldna22 commented 1 year ago

no rush. if this is all that works for now, im happy with just chat. Image creator just might be down again on the website, i havent checked yet. Thanks again!

JE-Chen commented 1 year ago

I think it's bing's DALL-E3 problem image image

JE-Chen commented 1 year ago

Only happend on async image generation, you can use thread and queue to process sync image generation like async. I need to check why asnyc will block request.

1nv4510n commented 1 year ago

for me image gen works well, but when they released dalle 3 you have to wait for a long time

JE-Chen commented 1 year ago

Yes new DALL-E3 bing image gen take long time, And we need waiting image gen done, Then we can generate next image, Can't generate multi image on same time now (Have limit), If image gen problem is bing's problem, I can't do anything.

https://www.bing.com/create

fractaldna22 commented 1 year ago

in this case it never makes the request to the image creator before redirect fail. the images arent waiting on the creation page

On Fri, 6 Oct 2023 at 05:31, JeffreyChen @.***> wrote:

Yes new DALL-E3 bing image gen take long time, And we need waiting image gen done, Then we can generate next image, Can't generate multi image on same time now, If image gen problem is bing's problem, I can't do anything.

— Reply to this email directly, view it on GitHub https://github.com/Integration-Automation/ReEdgeGPT/issues/22#issuecomment-1750281247, or unsubscribe https://github.com/notifications/unsubscribe-auth/AI4YF7VVP5BLO57K5GH3HNDX57FWBAVCNFSM6AAAAAA5TPXUICVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONJQGI4DCMRUG4 . You are receiving this because you were mentioned.Message ID: @.***>

fractaldna22 commented 1 year ago

but it did work right the first time yesterday while chat wasnt working image

in the past i know that when dalle 3 is slow, the images are still on the creations page. but now if it says this

image

theres no new images on the creation page for these

fractaldna22 commented 1 year ago

maybe it was just bad luck. ill try again manually directly in vscode today.

JE-Chen commented 1 year ago

Still can't generate multi image on same time (Bing block), so if image still creating or cookie out of date, re_edge_gpt will return None and print

Image create failed pls check cookie or old image still creating

Like this: image

def get_images(self, prompt: str) -> Union[list, None]: