fix(utils): don't wait for thread to complete to return response

This commit is contained in:
Krrish Dholakia 2023-10-11 14:23:55 -07:00
parent 03c96bbc5f
commit e26f98dce2

View file

@ -2951,7 +2951,7 @@ def safe_crash_reporting(model=None, exception=None, custom_llm_provider=None):
"exception": str(exception), "exception": str(exception),
"custom_llm_provider": custom_llm_provider, "custom_llm_provider": custom_llm_provider,
} }
threading.Thread(target=litellm_telemetry, args=(data,)).start() threading.Thread(target=litellm_telemetry, args=(data,), daemon=True).start()
def get_or_generate_uuid(): def get_or_generate_uuid():
temp_dir = os.path.join(os.path.abspath(os.sep), "tmp") temp_dir = os.path.join(os.path.abspath(os.sep), "tmp")