forked from phoenix/litellm-mirror
(feat) proxy - remove subprocess install
This commit is contained in:
parent
e516cfe9f5
commit
af15e49948
2 changed files with 2 additions and 28 deletions
|
@ -20,33 +20,8 @@ try:
|
|||
import backoff
|
||||
import yaml
|
||||
import orjson
|
||||
except ImportError:
|
||||
import sys
|
||||
|
||||
subprocess.check_call(
|
||||
[
|
||||
sys.executable,
|
||||
"-m",
|
||||
"pip",
|
||||
"install",
|
||||
"uvicorn",
|
||||
"fastapi",
|
||||
"appdirs",
|
||||
"backoff",
|
||||
"pyyaml",
|
||||
"orjson",
|
||||
]
|
||||
)
|
||||
import uvicorn
|
||||
import fastapi
|
||||
import appdirs
|
||||
import backoff
|
||||
import yaml
|
||||
import orjson
|
||||
|
||||
warnings.warn(
|
||||
"Installed runtime dependencies for proxy server. Specify these dependencies explicitly with `pip install litellm[proxy]`"
|
||||
)
|
||||
except ImportError as e:
|
||||
raise ImportError(f"Missing dependency {e}. Run `pip install litellm[proxy]`")
|
||||
|
||||
import random
|
||||
|
||||
|
|
|
@ -28,7 +28,6 @@ rq = {version = "*", optional = true}
|
|||
proxy = [
|
||||
"uvicorn",
|
||||
"fastapi",
|
||||
"appdirs",
|
||||
"backoff",
|
||||
"pyyaml",
|
||||
"rq",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue