mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 10:44:24 +00:00
(feat) use same id to log on s3, langfuse
This commit is contained in:
parent
c9b3a03092
commit
d69edac11b
3 changed files with 21 additions and 38 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue