Skip to content

Commit

Permalink
Merge pull request writer#430 from streamsync-cloud/dev
Browse files Browse the repository at this point in the history
chore: Merge for release
  • Loading branch information
ramedina86 authored May 15, 2024
2 parents da42048 + 5a419fa commit e0319f1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 <[email protected]>"]
license = "Apache 2.0"
Expand Down
3 changes: 2 additions & 1 deletion src/streamsync/ai.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down

0 comments on commit e0319f1

Please sign in to comment.