Skip to content

Commit

Permalink
Fix second key error (#153)
Browse files Browse the repository at this point in the history
- Fix index to resolve additional key error
  • Loading branch information
vsakkas authored Feb 10, 2024
1 parent ac8e480 commit 42ecdc8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# <img src="https://raw.githubusercontent.com/vsakkas/sydney.py/master/images/logo.svg" width="28px" /> Sydney.py

[![Latest Release](https://img.shields.io/github/v/release/vsakkas/sydney.py.svg)](https://github.com/vsakkas/sydney.py/releases/tag/v0.20.2)
[![Latest Release](https://img.shields.io/github/v/release/vsakkas/sydney.py.svg)](https://github.com/vsakkas/sydney.py/releases/tag/v0.20.3)
[![Python](https://img.shields.io/badge/python-3.9+-blue.svg)](https://www.python.org/downloads/)
[![MIT License](https://img.shields.io/badge/license-MIT-blue)](https://github.com/vsakkas/sydney.py/blob/master/LICENSE)

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "sydney-py"
version = "0.20.2"
version = "0.20.3"
description = "Python Client for Copilot (formerly named Bing Chat), also known as Sydney."
authors = ["vsakkas <[email protected]>"]
license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion sydney/sydney.py
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ async def _ask(
if messages[i]["adaptiveCards"][0]["body"][0].get("text"):
yield messages[i]["adaptiveCards"][0]["body"][0]["text"], suggested_responses
else:
yield messages[i]["adaptiveCards"][0]["body"][0]["text"], suggested_responses
yield messages[i]["adaptiveCards"][0]["body"][1]["text"], suggested_responses
else:
yield messages[i]["text"], suggested_responses

Expand Down

0 comments on commit 42ecdc8

Please sign in to comment.