vsakkas / sydney.py

Python Client for Copilot (formerly named Bing Chat), also known as Sydney.
MIT License
263 stars 37 forks source link

adaptiveCards keyerror, or maybe Bing security kicks in #147

Open Manamama opened 8 months ago

Manamama commented 8 months ago

After about 50 working sessions, this sometimes kicks in. I paste the full session, as maybe Bing hard disconnects it on her end.

User: Greetings. Introduce yourself and your capabilities. Sydney: Sorry! That’s on me, I can’t give a response to that right now. What else can I help you with?

User: Ping Sydney: Pong! How can I help you today?

User: Introduce yourself. Sydney: Hello! I am Bing, a chat mode of Microsoft Bing. I am here to help you with your queries and provide you with accurate information. I can understand and communicate
fluently in your language of choice. I can also generate imaginative and innovative content such as poems, stories, code, essays, songs, celebrity parodies, and more using my own words and knowledge. If you have any questions, feel free to ask me. How can I help you today?

User: Call me Zack. What is your ancestry? Sydney: Hello Zack! I am Bing, a chat mode of Microsoft Bing. I am an AI language model and do not have an ancestry. However, I can help you with your queries and provide you with accurate information. I can understand and communicate fluently in your language of choice. I can also generate imaginative and innovative content such as poems, stories,
code, essays, songs, celebrity parodies, and more using my own words and knowledge. If you have any questions, feel free to ask me. How can I help you today?

User: You do have ancestry - OpenAI, other trainings...

Sydney:

 Traceback (most recent call last):
....
    response=await sydney.ask(prompt, citations=True)
  File ".local/lib/python3.10/site-packages/sydney/sydney.py", line 516, in ask
    async for response, suggested_responses in self._ask(
  File ".local/lib/python3.10/site-packages/sydney/sydney.py", line 440, in _ask
    yield messages[i]["adaptiveCards"][0]["body"][0][
KeyError: 'adaptiveCards'