Simplify system prompt assignment in ChatThread.cs.

This commit is contained in:
Thorsten Sommer 2025-05-24 18:09:41 +02:00
parent 8cb951c63c
commit 009ff23f55
Signed by untrusted user who does not match committer: tsommer
GPG Key ID: 371BBA77A02C0108

View File

@ -115,9 +115,7 @@ public sealed record ChatThread
{ {
logMessage = $"Using chat template '{chatTemplate.Name}' for chat thread '{chatThread.Name}'."; logMessage = $"Using chat template '{chatTemplate.Name}' for chat thread '{chatThread.Name}'.";
this.allowProfile = chatTemplate.AllowProfileUsage; this.allowProfile = chatTemplate.AllowProfileUsage;
systemPromptTextWithChatTemplate = $""" systemPromptTextWithChatTemplate = chatTemplate.ToSystemPrompt();
{chatTemplate.ToSystemPrompt()}
""";
} }
} }
} }