Skip to content
This repository has been archived by the owner on Jul 6, 2024. It is now read-only.

”unauthorized request" and "chathub not authorized". #9

Open
chinazhaoht opened this issue Oct 7, 2023 · 3 comments
Open

”unauthorized request" and "chathub not authorized". #9

chinazhaoht opened this issue Oct 7, 2023 · 3 comments

Comments

@chinazhaoht
Copy link

I used the signature in the X-Sydney-Encryptedconversationsignature header from the create conversation response, URL-encoded it, and passed it as the sec_access_token to the chathub interface, but the chathub still returns "unauthorized request" and "chathub not authorized".

@nikilagar
Copy link

Due to recent bing API update, we might need to pass more cookies. Please refer to https://github.com/transitive-bullshit/bing-chat/pull/56/files/a4cd8089432ac75b15eb51b25a8f1154cac8d0f3#diff-eb0f70fdf73c5fc4372815575d2b38fd700baf4b9abe1b67738771563a70ce70 for complete solution.

@typoworx-de
Copy link

Thanks for the hint @nikilagar. Well I'm not a pro in nodejs, but I think this is a good starting point:
https://github.com/tuhinpal/bingchat-api/pull/12/files

@typoworx-de
Copy link

Good news by fiddling around trying to port the idea of catching the security-token from response (thanks forr @nikilagar for the hint) I've got it working locally and provided the patch (see link above) and provided a pull-request.

I've got a live-sign of GPT :-D

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

No branches or pull requests

3 participants