mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-24 18:24:20 +00:00
(fix) error cli users see when importing enterprise folder
This commit is contained in:
parent
f07a652148
commit
fa1676b253
2 changed files with 7 additions and 2 deletions
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…
Add table
Add a link
Reference in a new issue