Skip to content

Commit

Permalink
fix text is finished trigger in gpt component
Browse files Browse the repository at this point in the history
  • Loading branch information
mde-pach committed Feb 20, 2024
1 parent fc6e44b commit 6534a4e
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 @@ -205,7 +205,7 @@ class GPTResponse(GPTChatComponent):

def __init__(self, text: str = "", text_is_finished: bool = False) -> None:
super().__init__(label=self.LABEL, text=text, icon=self.ICON, avatar_color=self.AVATAR_COLOR)
self._text_is_finished = text_is_finished
self.text_is_finished = text_is_finished

def add(self, text: str) -> None:
self.text += text
Expand Down

0 comments on commit 6534a4e

Please sign in to comment.