From 1dec7de24e207076c70568146142ed770a0577cf Mon Sep 17 00:00:00 2001 From: Thorsten Sommer Date: Mon, 12 Aug 2024 20:07:36 +0200 Subject: [PATCH] Return the AI-generated text --- app/MindWork AI Studio/Components/AssistantBase.razor.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/MindWork AI Studio/Components/AssistantBase.razor.cs b/app/MindWork AI Studio/Components/AssistantBase.razor.cs index 2046009b..c1568df5 100644 --- a/app/MindWork AI Studio/Components/AssistantBase.razor.cs +++ b/app/MindWork AI Studio/Components/AssistantBase.razor.cs @@ -99,7 +99,7 @@ public abstract partial class AssistantBase : ComponentBase return time; } - protected async Task AddAIResponseAsync(DateTimeOffset time) + protected async Task AddAIResponseAsync(DateTimeOffset time) { var aiText = new ContentText { @@ -127,5 +127,9 @@ public abstract partial class AssistantBase : ComponentBase this.isProcessing = false; this.StateHasChanged(); + + // Return the AI response: + return aiText.Text; + } } } \ No newline at end of file