mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 02:34:29 +00:00
fix(spend_tracking_utils.py): ensure each file create request is logged correctly
This commit is contained in:
parent
f56eddec42
commit
0bd9b2953a
1 changed files with 1 additions and 1 deletions
|
@ -113,7 +113,7 @@ def generate_hash_from_response(response_obj: Any) -> str:
|
|||
def get_spend_logs_id(
|
||||
call_type: str, response_obj: dict, kwargs: dict
|
||||
) -> Optional[str]:
|
||||
if call_type == "aretrieve_batch":
|
||||
if call_type == "aretrieve_batch" or call_type == "acreate_file":
|
||||
# Generate a hash from the response object
|
||||
id: Optional[str] = generate_hash_from_response(response_obj)
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue