Finalized chat templates (#475)

This commit is contained in:
Thorsten Sommer authored and GitHub committed 2025-05-24 19:11:28 +02:00
1 parent df062ae6e6
commit 9e207974e9
23 files changed
+830 -241

No files matched your search

@@ -7,7 +7,7 @@ public readonly record struct ChatTemplate(uint Num, string Id, string Name, str
{
private static string TB(string fallbackEN) => I18N.I.T(fallbackEN, typeof(ChatTemplate).Namespace, nameof(ChatTemplate));
public static readonly ChatTemplate NO_CHATTEMPLATE = new()
public static readonly ChatTemplate NO_CHAT_TEMPLATE = new()
{
Name = TB("Use no chat template"),
SystemPrompt = string.Empty,
@@ -34,5 +34,4 @@ public readonly record struct ChatTemplate(uint Num, string Id, string Name, str
return this.SystemPrompt;
}
}
@@ -273,7 +273,7 @@ public sealed class SettingsManager
return preselection;
preselection = this.ConfigurationData.ChatTemplates.FirstOrDefault(x => x.Id == this.ConfigurationData.App.PreselectedChatTemplate);
return preselection != default ? preselection : ChatTemplate.NO_CHATTEMPLATE;
return preselection != default ? preselection : ChatTemplate.NO_CHAT_TEMPLATE;
}
public ConfidenceLevel GetConfiguredConfidenceLevel(LLMProviders llmProvider)