Trigger event, when AI stream ends

This commit is contained in:
Thorsten Sommer 2024-10-27 20:17:17 +01:00
parent 90aaa0446f
commit 6d468d361a
Signed by: tsommer
GPG Key ID: 371BBA77A02C0108

View File

@ -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);
});
}