diff --git a/pyproject.toml b/pyproject.toml index dcf0b5a61..4f6d67bbd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api" [tool.poetry] name = "streamsync" -version = "0.6.0rc1" +version = "0.6.0rc2" description = "Streamsync helps you create performant data apps, via Python code and its built-in visual UI editor." authors = ["Ramiro Medina "] license = "Apache 2.0" diff --git a/src/streamsync/ai.py b/src/streamsync/ai.py index b77c88e3f..fbbb43149 100644 --- a/src/streamsync/ai.py +++ b/src/streamsync/ai.py @@ -49,7 +49,8 @@ def _process_completion_data_chunk(choice: StreamingData) -> str: def _process_chat_data_chunk(chat_data: Chat) -> dict: choices = chat_data.choices for entry in choices: - message = cast(dict, entry.message) + dict_entry = cast(dict, entry) + message = cast(dict, dict_entry["message"]) return message raise ValueError("Failed to retrieve text from chat stream")