mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-12 01:47:21 +00:00
Fixed mail search leaving out mails that did not fit into a search (#1169)
This commit is contained in:
1 parent
188d17688a
commit
7f0d0ed8f6
11 files changed
+924
-245
No files matched your search
+3
-1
@@ -31,5 +31,7 @@ internal sealed class MailTexts
|
||||
return this.texts.Count - 1;
|
||||
}
|
||||
|
||||
public async Task SanitizeAsync(PromptInjectionGuardService guardService) => this.sanitizedTexts = await guardService.SanitizeAsync(this.texts);
|
||||
/// <param name="guardService">The prompt injection filter.</param>
|
||||
/// <param name="reportingScope">The action the texts belong to, when it filters more than once; without one, the user hears right away what was filtered.</param>
|
||||
public async Task SanitizeAsync(PromptInjectionGuardService guardService, PromptInjectionReportingScope? reportingScope = null) => this.sanitizedTexts = await guardService.SanitizeAsync(this.texts, reportingScope);
|
||||
}
|
||||
Reference in new issue
Block a user