Skip to content

Commit

Permalink
(feat) proxy - remove subprocess install
Browse files Browse the repository at this point in the history
  • Loading branch information
ishaan-jaff committed Dec 27, 2023
1 parent e516cfe commit af15e49
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 28 deletions.
29 changes: 2 additions & 27 deletions litellm/proxy/proxy_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,33 +20,8 @@
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

Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ rq = {version = "*", optional = true}
proxy = [
"uvicorn",
"fastapi",
"appdirs",
"backoff",
"pyyaml",
"rq",
Expand Down

0 comments on commit af15e49

Please sign in to comment.