mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-16 04:29:31 +00:00
style(presidio): apply ruff formatting and organized imports cleanly
This commit is contained in:
parent
da39634c16
commit
b189a8611b
1 changed files with 1 additions and 1 deletions
|
|
@ -1628,7 +1628,7 @@ class _OPTIONAL_PresidioPIIMasking(CustomGuardrail):
|
|||
if not getattr(assembled_model_response, "usage", None) and chunks:
|
||||
last_chunk_usage: Final = getattr(chunks[-1], "usage", None)
|
||||
if last_chunk_usage:
|
||||
setattr(assembled_model_response, "usage", last_chunk_usage) # noqa: B010
|
||||
setattr(assembled_model_response, "usage", last_chunk_usage)
|
||||
|
||||
def get_presidio_settings_from_request_data(self, data: dict) -> PresidioPerRequestConfig | None:
|
||||
if "metadata" in data:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue