JailbreakDetectionConfig#

class nemo_microservices.types.shared_params.JailbreakDetectionConfig

Bases: TypedDict

embedding: str

Model to use for embedding-based detections.

length_per_perplexity_threshold: float

The length/perplexity threshold.

prefix_suffix_perplexity_threshold: float

The prefix/suffix perplexity threshold.

server_endpoint: str

The endpoint for the jailbreak detection heuristics server.