Simplify profile condition check in ChatThread logic.

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

View File

@ -148,7 +148,7 @@ public sealed record ChatThread
// //
string systemPromptText; string systemPromptText;
logMessage = $"Using no profile for chat thread '{chatThread.Name}'."; logMessage = $"Using no profile for chat thread '{chatThread.Name}'.";
if ((string.IsNullOrWhiteSpace(chatThread.SelectedProfile)) || (this.allowProfile is false)) if (string.IsNullOrWhiteSpace(chatThread.SelectedProfile) || this.allowProfile is false)
systemPromptText = systemPromptWithAugmentedData; systemPromptText = systemPromptWithAugmentedData;
else else
{ {