Added example text element validation

This commit is contained in:
Thorsten Sommer 2025-05-24 18:35:02 +02:00
parent 22749c1e69
commit 778ecfe2c2
Signed by untrusted user who does not match committer: tsommer
GPG Key ID: 371BBA77A02C0108

View File

@ -208,10 +208,10 @@ public partial class ChatTemplateDialog : MSGComponentBase
this.MudDialog.Close(DialogResult.Ok(addedChatTemplateSettings)); this.MudDialog.Close(DialogResult.Ok(addedChatTemplateSettings));
} }
private string? ValidateSystemPrompt(string text) private string? ValidateExampleTextMessage(string message)
{ {
if(text.Length > 444) if (string.IsNullOrWhiteSpace(message))
return T("The text must not exceed 444 characters."); return T("Please enter a message for the example conversation.");
return null; return null;
} }