don't hide chat when deleted
This commit is contained in:
parent
b1a39567ad
commit
53fe4afedb
1 changed files with 2 additions and 0 deletions
|
|
@ -29,6 +29,8 @@ class SimpleChatStep(Step):
|
|||
messages = self.messages or await sdk.get_chat_context()
|
||||
async for chunk in sdk.models.gpt4.stream_chat(messages, temperature=0.5):
|
||||
if sdk.current_step_was_deleted():
|
||||
# So that the message doesn't disappear
|
||||
self.hide = False
|
||||
return
|
||||
|
||||
if "content" in chunk:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue