added ai-moderation image and text
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
package com.krylov.refound.ai.exception;
|
||||
|
||||
import java.util.List;
|
||||
import lombok.Getter;
|
||||
|
||||
@Getter
|
||||
public class ContentBlockedException extends RuntimeException {
|
||||
|
||||
private final String reason;
|
||||
private final List<String> detectedLabels;
|
||||
|
||||
public ContentBlockedException(String reason, List<String> detectedLabels) {
|
||||
super(reason);
|
||||
this.reason = reason;
|
||||
this.detectedLabels = detectedLabels;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user