forked from phoenix/litellm-mirror
(fix) ci/cd don't let importing litellm._version block starting proxy
This commit is contained in:
parent
9c743a75f7
commit
ed8c62c24a
2 changed files with 6 additions and 5 deletions
|
@ -1,8 +1,6 @@
|
|||
import importlib_metadata
|
||||
import traceback
|
||||
|
||||
try:
|
||||
version = importlib_metadata.version("litellm")
|
||||
except Exception as e:
|
||||
traceback.print_exc()
|
||||
raise e
|
||||
except:
|
||||
pass
|
||||
|
|
|
@ -84,8 +84,11 @@ from litellm.proxy._types import *
|
|||
from litellm.caching import DualCache
|
||||
from litellm.proxy.health_check import perform_health_check
|
||||
from litellm._logging import verbose_router_logger, verbose_proxy_logger
|
||||
from litellm._version import version
|
||||
|
||||
try:
|
||||
from litellm._version import version
|
||||
except:
|
||||
version = "0.0.0"
|
||||
litellm.suppress_debug_info = True
|
||||
from fastapi import (
|
||||
FastAPI,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue