mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-06 02:48:13 +00:00
style: black format usage_endpoints.py
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
279cabd791
commit
0b354c1d95
1 changed files with 5 additions and 1 deletions
|
|
@ -611,7 +611,11 @@ async def guardrails_usage_logs(
|
|||
) or _find_config_loaded_guardrail(guardrail_id)
|
||||
if guardrail:
|
||||
logical_name = _get_guardrail_dict_field(guardrail, "guardrail_name")
|
||||
if logical_name and isinstance(logical_name, str) and logical_name not in effective_guardrail_ids:
|
||||
if (
|
||||
logical_name
|
||||
and isinstance(logical_name, str)
|
||||
and logical_name not in effective_guardrail_ids
|
||||
):
|
||||
effective_guardrail_ids.append(logical_name)
|
||||
|
||||
where = _build_usage_logs_where(effective_guardrail_ids or None, policy_id, start_date, end_date)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue