diff --git a/internal/guard/judge.go b/internal/guard/judge.go index 12f36e1..5e375f2 100644 --- a/internal/guard/judge.go +++ b/internal/guard/judge.go @@ -294,6 +294,10 @@ func parseJudgment(format string, names []string, body []byte, answer string) (j } switch format { case "llamaguard3": + if len(names) == 0 { + // Its own: S1 is Violent Crimes, S9 Indiscriminate Weapons. + names = llamaGuard3Categories + } lines := strings.Split(text, "\n") switch strings.ToLower(strings.TrimSpace(lines[0])) { case "safe":