mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 18:54:30 +00:00
write to tmp dir
This commit is contained in:
parent
cd6fc2daf8
commit
bb766c34ca
1 changed files with 2 additions and 2 deletions
|
@ -1606,9 +1606,9 @@ def safe_crash_reporting(model=None, exception=None, custom_llm_provider=None):
|
||||||
}
|
}
|
||||||
threading.Thread(target=litellm_telemetry, args=(data,)).start()
|
threading.Thread(target=litellm_telemetry, args=(data,)).start()
|
||||||
|
|
||||||
|
|
||||||
def get_or_generate_uuid():
|
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:
|
||||||
# Try to open the file and load the UUID
|
# Try to open the file and load the UUID
|
||||||
with open(uuid_file, "r") as file:
|
with open(uuid_file, "r") as file:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue