(fix) error cli users see when importing enterprise folder
This commit is contained in:
parent
f07a652148
commit
fa1676b253
1
enterprise/__init__.py
Normal file
1
enterprise/__init__.py
Normal file
@ -0,0 +1 @@
|
||||
from . import *
|
||||
@ -144,9 +144,13 @@ from typing import Union
|
||||
try:
|
||||
# when using litellm cli
|
||||
import litellm.proxy.enterprise as enterprise
|
||||
except:
|
||||
except Exception as e:
|
||||
# when using litellm docker image
|
||||
import enterprise # type: ignore
|
||||
try:
|
||||
import enterprise # type: ignore
|
||||
except Exception as e:
|
||||
print("Error importing enterprise: " + str(e)) # noqa
|
||||
pass
|
||||
|
||||
ui_link = f"/ui/"
|
||||
ui_message = (
|
||||
|
||||
Loading…
Reference in New Issue
Block a user