mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-27 11:43:54 +00:00
(chore) remove old uvicorn logic
This commit is contained in:
parent
5136d5980f
commit
873965df22
1 changed files with 1 additions and 4 deletions
|
@ -65,7 +65,7 @@ def is_port_in_use(port):
|
||||||
@click.command()
|
@click.command()
|
||||||
@click.option("--host", default="0.0.0.0", help="Host for the server to listen on.")
|
@click.option("--host", default="0.0.0.0", help="Host for the server to listen on.")
|
||||||
@click.option("--port", default=8000, help="Port to bind the server to.")
|
@click.option("--port", default=8000, help="Port to bind the server to.")
|
||||||
@click.option("--num_workers", default=1, help="Number of uvicorn workers to spin up")
|
@click.option("--num_workers", default=1, help="Number of gunicorn workers to spin up")
|
||||||
@click.option("--api_base", default=None, help="API base URL.")
|
@click.option("--api_base", default=None, help="API base URL.")
|
||||||
@click.option(
|
@click.option(
|
||||||
"--api_version",
|
"--api_version",
|
||||||
|
@ -373,9 +373,6 @@ def run_server(
|
||||||
)
|
)
|
||||||
if port == 8000 and is_port_in_use(port):
|
if port == 8000 and is_port_in_use(port):
|
||||||
port = random.randint(1024, 49152)
|
port = random.randint(1024, 49152)
|
||||||
# uvicorn.run(
|
|
||||||
# "litellm.proxy.proxy_server:app", host=host, port=port, workers=num_workers
|
|
||||||
# )
|
|
||||||
|
|
||||||
import gunicorn.app.base
|
import gunicorn.app.base
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue