mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-14 23:21:35 +00:00
fix(guardrails): annotate llama_guard **kwargs (LIT008 kwargs-ok)
This commit is contained in:
parent
9118a46421
commit
0bf552792c
1 changed files with 1 additions and 1 deletions
|
|
@ -92,7 +92,7 @@ class LlamaGuardGuardrail(CustomGuardrail):
|
|||
unsafe_content_categories: str | None = None,
|
||||
event_hook: GuardrailEventHooks | list[GuardrailEventHooks] | str | None = None,
|
||||
default_on: bool = False,
|
||||
**kwargs: Any,
|
||||
**kwargs: Any, # kwargs-ok: forwarded verbatim to CustomGuardrail.__init__
|
||||
) -> None:
|
||||
if not model:
|
||||
raise ValueError("llama_guard guardrail requires a `model`")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue