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

Stopped working #17

Closed
theurs opened this issue Sep 13, 2023 · 3 comments
Closed

Stopped working #17

theurs opened this issue Sep 13, 2023 · 3 comments
Labels
question Further information is requested

Comments

@theurs
Copy link

theurs commented Sep 13, 2023

'conversationSignature'
  File "C:\Users\user\V\4 python\2 telegram bot tesseract\tb1\bingai.py", line 369, in test1
    bot = await Chatbot.create(cookies=cookies)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\user\V\4 python\2 telegram bot tesseract\tb1\bingai.py", line 375, in <module>
    asyncio.run(test1())
KeyError: 'conversationSignature'
async def test1():
    cookies = json.loads(open("cookies.json", encoding="utf-8").read())
    bot = await Chatbot.create(cookies=cookies)
    r = await bot.ask(prompt=prompt1, conversation_style=ConversationStyle.precise, simplify_response=True)
    print(r)


asyncio.run(test1())
@JE-Chen
Copy link
Member

JE-Chen commented Sep 13, 2023

Try to clear all your cookie on Edge setting
image
Then export new cookie file.

@theurs theurs changed the title Ыtopped working Stopped working Sep 13, 2023
@JE-Chen JE-Chen added the question Further information is requested label Sep 13, 2023
@JE-Chen
Copy link
Member

JE-Chen commented Sep 13, 2023

If setting is right then this url should contain conversationSignature
https://edgeservices.bing.com/edgesvc/turing/conversation/create
image

@theurs
Copy link
Author

theurs commented Sep 13, 2023

success

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

No branches or pull requests

2 participants