From ce426f8b07f133bd3b817a41c13aeeef509d946b Mon Sep 17 00:00:00 2001 From: ishaan-jaff Date: Thu, 11 Jan 2024 11:44:20 +0530 Subject: [PATCH] (fix) s3 log cache hits --- litellm/integrations/s3.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/litellm/integrations/s3.py b/litellm/integrations/s3.py index e7f607b417..db40ae8329 100644 --- a/litellm/integrations/s3.py +++ b/litellm/integrations/s3.py @@ -118,7 +118,10 @@ class S3Logger: except: # non blocking if it can't cast to a str pass - s3_object_key = payload["id"] + + s3_object_key = ( + payload["id"] + "-time=" + str(start_time) + ) # we need the s3 key to include the time, so we log cache hits too import json