Improved validation

This commit is contained in:
Thorsten Sommer 2024-08-21 20:06:49 +02:00
parent 50bf0baff7
commit d1526509ef
Signed by: tsommer
GPG Key ID: 371BBA77A02C0108

View File

@ -303,7 +303,7 @@ public partial class AssistantAgenda : AssistantBaseCore
if(string.IsNullOrWhiteSpace(content)) if(string.IsNullOrWhiteSpace(content))
return "Please provide some content for the agenda. What are the main points of the meeting or the seminar?"; return "Please provide some content for the agenda. What are the main points of the meeting or the seminar?";
var lines = content.Split('\n'); var lines = content.Split('\n', StringSplitOptions.RemoveEmptyEntries);
foreach (var line in lines) foreach (var line in lines)
if(!line.TrimStart().StartsWith('-')) if(!line.TrimStart().StartsWith('-'))
return "Please start each line of your content list with a dash (-) to create a bullet point list."; return "Please start each line of your content list with a dash (-) to create a bullet point list.";