From bb766c34ca802cdcdc5b4f5767cfc01a01a3ec97 Mon Sep 17 00:00:00 2001 From: ishaan-jaff Date: Thu, 31 Aug 2023 08:55:19 -0700 Subject: [PATCH] write to tmp dir --- litellm/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/litellm/utils.py b/litellm/utils.py index a39efeee35..7ba300aa39 100644 --- a/litellm/utils.py +++ b/litellm/utils.py @@ -1606,9 +1606,9 @@ def safe_crash_reporting(model=None, exception=None, custom_llm_provider=None): } threading.Thread(target=litellm_telemetry, args=(data,)).start() - def get_or_generate_uuid(): - uuid_file = "litellm_uuid.txt" + temp_dir = os.path.join(os.path.abspath(os.sep), "tmp") + uuid_file = os.path.join(temp_dir, "litellm_uuid.txt") try: # Try to open the file and load the UUID with open(uuid_file, "r") as file: