{"record":{"id":"15ec1d5be7298a63","repo":"BerriAI/litellm","slug":"javelinguardrailexception-please-pass-the-javeli","errorCode":null,"errorMessage":"JavelinGuardrailException - Please pass the Javelin guard name via 'litellm_params::guard_name'","messagePattern":"JavelinGuardrailException - Please pass the Javelin guard name via 'litellm_params::guard_name'","errorType":"exception","errorClass":"Exception","httpStatus":null,"severity":"error","filePath":"litellm/proxy/guardrails/guardrail_hooks/javelin/__init__.py","lineNumber":15,"sourceCode":"from typing import TYPE_CHECKING, Final\n\nfrom litellm.types.guardrails import SupportedGuardrailIntegrations\n\nfrom .javelin import JavelinGuardrail\n\nif TYPE_CHECKING:\n    from litellm.types.guardrails import Guardrail, LitellmParams\n\n\ndef initialize_guardrail(litellm_params: \"LitellmParams\", guardrail: \"Guardrail\"):\n    import litellm\n\n    if litellm_params.guard_name is None:\n        raise Exception(\n            \"JavelinGuardrailException - Please pass the Javelin guard name via 'litellm_params::guard_name'\"\n        )\n\n    _javelin_callback: Final = JavelinGuardrail(\n        api_base=litellm_params.api_base,\n        api_key=litellm_params.api_key,\n        guardrail_name=guardrail.get(\"guardrail_name\", \"\"),\n        javelin_guard_name=litellm_params.guard_name,\n        event_hook=litellm_params.mode,\n        default_on=litellm_params.default_on or False,\n        api_version=litellm_params.api_version or \"v1\",\n        config=litellm_params.config,\n        metadata=litellm_params.metadata,\n        application=litellm_params.application,\n    )\n    litellm.logging_callback_manager.add_litellm_callback(_javelin_callback)\n\n    return _javelin_callback","sourceCodeStart":1,"sourceCodeEnd":33,"githubUrl":"https://github.com/BerriAI/litellm/blob/77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8/litellm/proxy/guardrails/guardrail_hooks/javelin/__init__.py#L1-L33","documentation":"Error \"JavelinGuardrailException - Please pass the Javelin guard name via 'litellm_params::guard_name'\" thrown in BerriAI/litellm.","triggerScenarios":"Thrown at litellm/proxy/guardrails/guardrail_hooks/javelin/__init__.py:15 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Set guard_name under litellm_params in the javelin guardrail config.","Confirm the guard name exists in your Javelin application configuration."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8","analyzedAt":"2026-08-18T11:44:31.656Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}