mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-09 22:31:41 +00:00
fix(mlflow): type the cache token extraction helper
This commit is contained in:
parent
7ea2cf73f1
commit
dbb5929678
1 changed files with 3 additions and 1 deletions
|
|
@ -228,7 +228,9 @@ class MlflowLogger(CustomLogger):
|
|||
)
|
||||
return attributes
|
||||
|
||||
def _extract_cache_token_usage(self, standard_obj) -> dict:
|
||||
def _extract_cache_token_usage(
|
||||
self, standard_obj: StandardLoggingPayload
|
||||
) -> dict[str, int]:
|
||||
"""
|
||||
Extract cache token counts from the raw response usage.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue