JailbreakDetectionConfig#

class nemo_microservices.types.shared_params.JailbreakDetectionConfig

Bases: TypedDict

api_key: str

Secret String with API key for use in Jailbreak requests.

Takes precedence over api_key_env_var

api_key_env_var: str

Environment variable containing API key for jailbreak detection model

embedding: str
length_per_perplexity_threshold: float

The length/perplexity threshold.

nim_base_url: str

//localhost:8000/v1

Type:

Base URL for jailbreak detection model. Example

Type:

http

nim_server_endpoint: str

Classification path uri. Defaults to ‘classify’ for NemoGuard JailbreakDetect.

prefix_suffix_perplexity_threshold: float

The prefix/suffix perplexity threshold.

server_endpoint: str

The endpoint for the jailbreak detection heuristics/model container.