mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2025-08-21 04:12:56 +00:00
Simplify system prompt assignment in ChatThread.cs.
This commit is contained in:
parent
8cb951c63c
commit
009ff23f55
@ -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()}
|
|
||||||
""";
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user