From 009ff23f559a220a03f7cc5e1860cb3f7d402b08 Mon Sep 17 00:00:00 2001 From: Thorsten Sommer Date: Sat, 24 May 2025 18:09:41 +0200 Subject: [PATCH] Simplify system prompt assignment in ChatThread.cs. --- app/MindWork AI Studio/Chat/ChatThread.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/MindWork AI Studio/Chat/ChatThread.cs b/app/MindWork AI Studio/Chat/ChatThread.cs index 9e029ae2..3d817b1d 100644 --- a/app/MindWork AI Studio/Chat/ChatThread.cs +++ b/app/MindWork AI Studio/Chat/ChatThread.cs @@ -115,9 +115,7 @@ public sealed record ChatThread { logMessage = $"Using chat template '{chatTemplate.Name}' for chat thread '{chatThread.Name}'."; this.allowProfile = chatTemplate.AllowProfileUsage; - systemPromptTextWithChatTemplate = $""" - {chatTemplate.ToSystemPrompt()} - """; + systemPromptTextWithChatTemplate = chatTemplate.ToSystemPrompt(); } } }