mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-14 09:03:16 +00:00
fix: satisfy media guard type discipline and formatting
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
parent
24bf5ca4f9
commit
4db3b41caa
2 changed files with 6 additions and 4 deletions
|
|
@ -448,7 +448,11 @@ def _tpm_embedding_leaf(value: object) -> _TPMMediaProjection:
|
|||
return _TPMMediaProjection("" if media else value, media)
|
||||
|
||||
|
||||
def _is_json_array(value: object) -> TypeIs[list[object] | tuple[object, ...]]: # guard-ok: validates JSON arrays
|
||||
def _is_json_array(
|
||||
value: object,
|
||||
) -> TypeIs[ # guard-ok: validates the exact list and tuple types # mutable-ok: JSON input arrays are mutable
|
||||
list[object] | tuple[object, ...]
|
||||
]:
|
||||
return isinstance(value, (list, tuple))
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1581,9 +1581,7 @@ async def get_global_spend_report(
|
|||
ORDER BY
|
||||
total_cost DESC;
|
||||
"""
|
||||
db_response = await _query_spend_logs(
|
||||
prisma_client, sql_query, start_date_obj, end_date_obj, api_key
|
||||
)
|
||||
db_response = await _query_spend_logs(prisma_client, sql_query, start_date_obj, end_date_obj, api_key)
|
||||
return db_response
|
||||
elif internal_user_id is not None:
|
||||
verbose_proxy_logger.debug("Getting /spend for internal_user_id: %s", internal_user_id)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue