mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-16 23:41:43 +00:00
style(cost): collapse a getattr call that fits the line limit
This commit is contained in:
parent
6c83484065
commit
4e51ff8a6d
1 changed files with 1 additions and 3 deletions
|
|
@ -1137,9 +1137,7 @@ class ResponseAPILoggingUtils:
|
|||
text_tokens=getattr(response_api_usage.input_tokens_details, "text_tokens", None),
|
||||
image_tokens=getattr(response_api_usage.input_tokens_details, "image_tokens", None),
|
||||
cache_write_tokens=getattr(response_api_usage.input_tokens_details, "cache_write_tokens", None),
|
||||
web_search_requests=getattr(
|
||||
response_api_usage.input_tokens_details, "web_search_requests", None
|
||||
),
|
||||
web_search_requests=getattr(response_api_usage.input_tokens_details, "web_search_requests", None),
|
||||
google_maps_grounding_requests=getattr(
|
||||
response_api_usage.input_tokens_details, "google_maps_grounding_requests", None
|
||||
),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue