slight naming changes

This commit is contained in:
Henry
2023-11-22 17:10:18 +00:00
parent 619fb4f5c1
commit c274085d42
5 changed files with 454 additions and 13 deletions
@@ -13,7 +13,7 @@ export class SimplePromptModerationRunner implements Moderation {
this.moderationErrorMessage = moderationErrorMessage
}
async checkForViolations(llm: BaseLanguageModel, input: string): Promise<string> {
async checkForViolations(_: BaseLanguageModel, input: string): Promise<string> {
this.denyList.split('\n').forEach((denyListItem) => {
if (denyListItem && denyListItem !== '' && input.includes(denyListItem)) {
throw Error(this.moderationErrorMessage)