mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-11 03:38:38 +00:00
Merge a5ef6aeaf3 into d946706744
This commit is contained in:
commit
8e9ad126f5
2 changed files with 9 additions and 0 deletions
|
|
@ -17,6 +17,8 @@ import os
|
|||
# Load .env before any other litellm imports so env vars (e.g. LITELLM_UI_SESSION_DURATION) are available
|
||||
import dotenv as _dotenv
|
||||
|
||||
from ._version import version as __version__
|
||||
|
||||
|
||||
def _dev_env_hot_reload_enabled() -> bool:
|
||||
"""The proxy exports this flag when started with ``--reload``. A reloaded
|
||||
|
|
|
|||
7
tests/test_litellm/test___init__.py
Normal file
7
tests/test_litellm/test___init__.py
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
from importlib.metadata import version
|
||||
|
||||
import litellm
|
||||
|
||||
|
||||
def test_dunder_version_matches_installed_distribution() -> None:
|
||||
assert litellm.__version__ == version("litellm")
|
||||
Loading…
Add table
Reference in a new issue