forked from phoenix/litellm-mirror
Merge pull request #180 from zakhar-kogan/main
Added importlib, changed favicon, fixed __version__
This commit is contained in:
commit
91901aa986
6 changed files with 7 additions and 2 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -2,3 +2,4 @@
|
|||
.env
|
||||
litellm_uuid.txt
|
||||
__pycache__/
|
||||
bun.lockb
|
BIN
docs/my-website/img/favicon.png
Normal file
BIN
docs/my-website/img/favicon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 21 KiB |
|
@ -22,6 +22,7 @@
|
|||
"prism-react-renderer": "^1.3.5",
|
||||
"react": "^17.0.2",
|
||||
"react-dom": "^17.0.2",
|
||||
"sharp": "^0.32.5",
|
||||
"uuid": "^9.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import threading
|
||||
from litellm._version import version as __version__
|
||||
from typing import Callable, List, Optional
|
||||
|
||||
input_callback: List[str] = []
|
||||
|
|
2
litellm/_version.py
Normal file
2
litellm/_version.py
Normal file
|
@ -0,0 +1,2 @@
|
|||
import importlib_metadata
|
||||
version = importlib_metadata.version('litellm')
|
|
@ -7,7 +7,7 @@ import datetime, time
|
|||
import tiktoken
|
||||
|
||||
encoding = tiktoken.get_encoding("cl100k_base")
|
||||
import pkg_resources
|
||||
import importlib.metadata
|
||||
from .integrations.helicone import HeliconeLogger
|
||||
from .integrations.aispend import AISpendLogger
|
||||
from .integrations.berrispend import BerriSpendLogger
|
||||
|
@ -1266,7 +1266,7 @@ def litellm_telemetry(data):
|
|||
payload = {
|
||||
"uuid": uuid_value,
|
||||
"data": data,
|
||||
"version": pkg_resources.get_distribution("litellm").version,
|
||||
"version:": importlib.metadata.version("litellm"),
|
||||
}
|
||||
# Make the POST request to litellm logging api
|
||||
response = requests.post(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue