fix(spend_tracking_utils.py): ensure each file create request is logged correctly

This commit is contained in:
Krrish Dholakia 2025-04-11 19:19:36 -07:00
parent f56eddec42
commit 0bd9b2953a

View file

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