From 7b202b6dcdc8d15166580ad89d3e69005a0794f1 Mon Sep 17 00:00:00 2001 From: Thorsten Sommer Date: Sat, 24 May 2025 18:13:02 +0200 Subject: [PATCH] Add comment explaining chat template update restriction --- app/MindWork AI Studio/Components/ChatComponent.razor.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/MindWork AI Studio/Components/ChatComponent.razor.cs b/app/MindWork AI Studio/Components/ChatComponent.razor.cs index 5458c292..8d896a9f 100644 --- a/app/MindWork AI Studio/Components/ChatComponent.razor.cs +++ b/app/MindWork AI Studio/Components/ChatComponent.razor.cs @@ -447,7 +447,12 @@ public partial class ChatComponent : MSGComponentBase, IAsyncDisposable // Update provider, profile and chat template: this.ChatThread.SelectedProvider = this.Provider.Id; this.ChatThread.SelectedProfile = this.currentProfile.Id; - this.ChatThread.SelectedChatTemplate = this.currentChatTemplate.Id; + + // + // Remark: We do not update the chat template here + // because the chat template is only used when starting a new chat. + // Updating the chat template afterward is not supported. + // } var time = DateTimeOffset.Now;