mirror of
https://github.com/tiennm99/litellm.git
synced 2026-07-11 17:05:43 +00:00
fix(init_callbacks.py): fix presidio optional param
This commit is contained in:
@@ -56,7 +56,7 @@ def initialize_callbacks_on_proxy(
|
||||
|
||||
params = {
|
||||
"logging_only": presidio_logging_only,
|
||||
**callback_specific_params,
|
||||
**callback_specific_params.get("presidio", {}),
|
||||
}
|
||||
pii_masking_object = _OPTIONAL_PresidioPIIMasking(**params)
|
||||
imported_list.append(pii_masking_object)
|
||||
|
||||
@@ -48,7 +48,7 @@ def initialize_guardrails(
|
||||
|
||||
if guardrail.logging_only is True:
|
||||
if callback == "presidio":
|
||||
callback_specific_params["logging_only"] = True # type: ignore
|
||||
callback_specific_params["presidio"] = {"logging_only": True} # type: ignore
|
||||
|
||||
default_on_callbacks_list = list(default_on_callbacks)
|
||||
if len(default_on_callbacks_list) > 0:
|
||||
|
||||
Reference in New Issue
Block a user