Trigger event, when AI stream ends

This commit is contained in:
tsommer committed 2024-10-27 20:17:17 +01:00
1 parent 90aaa0446f
commit 6d468d361a
1 file changed
+3
@@ -83,6 +83,9 @@ public partial class ContentBlockComponent : ComponentBase
// Let Blazor update the UI, i.e., to see the render tree diff:
this.StateHasChanged();
// Inform the chat that the streaming is done:
await MessageBus.INSTANCE.SendMessage<bool>(this, Event.CHAT_STREAMING_DONE);
});
}