fix(mlflow): type the cache token extraction helper

This commit is contained in:
Gauthier Piarrette 2026-08-04 05:12:37 -07:00
parent 7ea2cf73f1
commit dbb5929678

View file

@ -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.