(feat) use same id to log on s3, langfuse

This commit is contained in:
ishaan-jaff 2024-02-02 16:26:40 -08:00
parent c9b3a03092
commit d69edac11b
3 changed files with 21 additions and 38 deletions

View file

@ -8859,3 +8859,13 @@ def print_args_passed_to_litellm(original_function, args, kwargs):
except:
# This should always be non blocking
pass
def get_logging_id(start_time, response_obj):
try:
response_id = (
"time-" + start_time.strftime("%H-%M-%S-%f") + "_" + response_obj.get("id")
)
return response_id
except:
return None