updates to proxy

This commit is contained in:
Krrish Dholakia 2023-09-28 17:58:39 -07:00
parent 13ff65a8fe
commit 4665b2a898
4 changed files with 38 additions and 10 deletions

View file

@ -2776,10 +2776,16 @@ def litellm_telemetry(data):
uuid_value = str(uuid.uuid4())
try:
# Prepare the data to send to litellm logging api
try:
pkg_version = importlib.metadata.version("litellm")
except:
pkg_version = None
if "model" not in data:
data["model"] = None
payload = {
"uuid": uuid_value,
"data": data,
"version:": importlib.metadata.version("litellm"),
"version:": pkg_version
}
# Make the POST request to litellm logging api
response = requests.post(