@@ -83,6 +83,7 @@ func (g *PromptInjectionGuardrail) Check(ctx context.Context, messages []llm.Mes
|
||||
"prompt injection classifier failed, allowing message through",
|
||||
log.Error(err),
|
||||
)
|
||||
|
||||
return &agent.GuardrailResult{Tripwire: false}, nil
|
||||
}
|
||||
|
||||
|
||||
@@ -32,6 +32,7 @@ func NewSystemPromptLeakGuardrail(fingerprints []string) *SystemPromptLeakGuardr
|
||||
if f == "" {
|
||||
continue
|
||||
}
|
||||
|
||||
lowered = append(lowered, strings.ToLower(f))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user