Skip to content

Commit

Permalink
fix failure IT
Browse files Browse the repository at this point in the history
Signed-off-by: zane-neo <[email protected]>
  • Loading branch information
zane-neo committed Apr 12, 2024
1 parent e138d83 commit f0f3a5b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ public static ModelTensors processOutput(
if (modelResponse == null) {
throw new IllegalArgumentException("model response is null");
}
if (mlGuard != null && mlGuard.validate(modelResponse, MLGuard.Type.OUTPUT)) {
if (mlGuard != null && !mlGuard.validate(modelResponse, MLGuard.Type.OUTPUT)) {
throw new IllegalArgumentException("guardrails triggered for LLM output");
}
List<ModelTensor> modelTensors = new ArrayList<>();
Expand Down

0 comments on commit f0f3a5b

Please sign in to comment.