mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 18:54:30 +00:00
updates to proxy
This commit is contained in:
parent
13ff65a8fe
commit
4665b2a898
4 changed files with 38 additions and 10 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue