mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-28 06:23:07 +00:00
fix(logging): only use rerank meta fallback when usage is absent
This commit is contained in:
parent
4c1289a3b6
commit
6e3bf73da9
1 changed files with 1 additions and 1 deletions
|
|
@ -6015,7 +6015,7 @@ class StandardLoggingPayloadSetup:
|
|||
if not response_obj:
|
||||
return _empty
|
||||
_raw: Final = response_obj.get("usage", None)
|
||||
if not _raw:
|
||||
if _raw is None:
|
||||
rerank_usage: Final = StandardLoggingPayloadSetup._get_rerank_usage_from_meta(response_obj.get("meta"))
|
||||
if rerank_usage is not None:
|
||||
return rerank_usage.model_dump()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue