forked from phoenix/litellm-mirror
(fix) proxy - raise error when user missing litellm[proxy]
This commit is contained in:
parent
e811f2d27a
commit
ab90b547d8
1 changed files with 6 additions and 1 deletions
|
@ -205,7 +205,12 @@ def run_server(
|
|||
try:
|
||||
from .proxy_server import app, save_worker_config, usage_telemetry
|
||||
except ImportError as e:
|
||||
from proxy_server import app, save_worker_config, usage_telemetry
|
||||
if "litellm[proxy]" in str(e):
|
||||
# user is missing a proxy dependency, ask them to pip install litellm[proxy]
|
||||
raise e
|
||||
else:
|
||||
# this is just a local/relative import error, user git cloned litellm
|
||||
from proxy_server import app, save_worker_config, usage_telemetry
|
||||
feature_telemetry = usage_telemetry
|
||||
if logs is not None:
|
||||
if logs == 0: # default to 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue