Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix conversation signature #56

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

rnz269
Copy link

@rnz269 rnz269 commented Oct 6, 2023

As of bing's last update, this library is broken due to bing changing auth requirements. This fixes it.

@rnz269 rnz269 mentioned this pull request Oct 6, 2023
@@ -312,7 +317,15 @@ export class BingChat {
credentials: 'include'
}).then((res) => {
if (res.ok) {
return res.json()
const conversationSignature =
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In my testing, we only need lines 320-326 and 83-85. I didn't need to update the SRCHHPGUSR cookie or other headers.

@renzhxr
Copy link

renzhxr commented Oct 23, 2023

no work
{
author: 'bot',
id: '6b9c6d42-ece8-4c5e-9b66-07266cc0c6da',
conversationId: '51D|BingProd|622F70691AF656C100165BEA958D43B53B2818F34A368B3EA7C7210A1C73674B',
clientId: '844425723620173',
conversationSignature: undefined,
invocationId: '2',
text: ''
}

@gamersindo1223
Copy link

looks like bing changed their api

\

@gamersindo1223
Copy link

@rnz269 Any plans for new pr?

@MahmutHizal
Copy link

this pr is still working for me. Thanks

@maddoglv
Copy link

maddoglv commented Dec 20, 2023

I agree with renzhxr it does not work anymore.

@zuhailkhan
Copy link

The conversation signature header is encrypted.

@gamersindo1223
Copy link

@maddoglv before you get your cookies, you need to send a message first after bing responded to your request get your cookie

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants