U
This commit is contained in:
@@ -69,6 +69,8 @@ export class ContentSafetyService {
|
||||
// Hard block check
|
||||
for (const pattern of this.HARD_BLOCK_PATTERNS) {
|
||||
if (pattern.test(content)) {
|
||||
this.logger.error(`checkOutput ->FALSE -> Output contains prohibited language`);
|
||||
this.logger.error({content});
|
||||
return {
|
||||
safe: false,
|
||||
blockReason: 'Output contains prohibited language',
|
||||
|
||||
Reference in New Issue
Block a user