forked from phoenix/litellm-mirror
fix init presidio guardrail
This commit is contained in:
parent
4ab8e52bfa
commit
7712aa652a
2 changed files with 7 additions and 5 deletions
|
@ -1361,12 +1361,13 @@ class Logging:
|
|||
)
|
||||
is not True
|
||||
):
|
||||
continue
|
||||
|
||||
self.model_call_details, result = await callback.async_logging_hook(
|
||||
kwargs=self.model_call_details,
|
||||
result=result,
|
||||
call_type=self.call_type,
|
||||
)
|
||||
continue
|
||||
elif isinstance(callback, CustomLogger):
|
||||
self.model_call_details, result = await callback.async_logging_hook(
|
||||
kwargs=self.model_call_details,
|
||||
|
|
|
@ -13,6 +13,7 @@ guardrails:
|
|||
litellm_params:
|
||||
guardrail: presidio # supported values: "aporia", "lakera", "presidio"
|
||||
mode: "pre_call" # pre_call, during_call, post_call
|
||||
output_parse_pii: True
|
||||
|
||||
general_settings:
|
||||
master_key: sk-1234
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue