mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2025-08-21 04: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));
|
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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user