Skip to content

Commit

Permalink
Update blitz/ui/components/gpt_chat_components.py with default value …
Browse files Browse the repository at this point in the history
…for text_is_finished

Co-authored-by: pbrochar <[email protected]>
  • Loading branch information
mde-pach and pbrochar authored Feb 16, 2024
1 parent ed17764 commit 9172774
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blitz/ui/components/gpt_chat_components.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,4 +254,4 @@ def split_response(text: str) -> list[Any]:

@classmethod
def from_gpt_dict(cls, gpt_dict: dict[str, Any]) -> "GPTChatComponent":
return cls(text=gpt_dict.get("content", ""), text_is_finished=gpt_dict["text_is_finished"])
return cls(text=gpt_dict.get("content", ""), text_is_finished=gpt_dict.get("text_is_finished", False))

0 comments on commit 9172774

Please sign in to comment.