Add execution_end message

This commit is contained in:
huchenlei 2024-07-21 15:09:31 -04:00
parent b071fff999
commit 535cb42d4c

View File

@ -399,6 +399,9 @@ class PromptExecutor:
if self.success is not True:
self.handle_execution_error(prompt_id, prompt, current_outputs, executed, error, ex)
break
else:
# Only execute when while ends without break
self.add_message("execution_end", { "prompt_id": prompt_id }, broadcast=False)
for x in executed:
self.old_prompt[x] = copy.deepcopy(prompt[x])