mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2025-08-20 17:12:56 +00:00
Added example text element validation
This commit is contained in:
parent
22749c1e69
commit
778ecfe2c2
@ -208,10 +208,10 @@ public partial class ChatTemplateDialog : MSGComponentBase
|
||||
this.MudDialog.Close(DialogResult.Ok(addedChatTemplateSettings));
|
||||
}
|
||||
|
||||
private string? ValidateSystemPrompt(string text)
|
||||
private string? ValidateExampleTextMessage(string message)
|
||||
{
|
||||
if(text.Length > 444)
|
||||
return T("The text must not exceed 444 characters.");
|
||||
if (string.IsNullOrWhiteSpace(message))
|
||||
return T("Please enter a message for the example conversation.");
|
||||
|
||||
return null;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user