The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
uvicorn allow setting num workers (#7681)
Ishaan Jaff9ac18caf242b
diff --git a/litellm/proxy/proxy_cli.py b/litellm/proxy/proxy_cli.pyindex 8f89bb557a4..6cc94fd7b49 100644--- a/litellm/proxy/proxy_cli.py+++ b/litellm/proxy/proxy_cli.py@@ -68,7 +68,7 @@ def is_port_in_use(port):@click.option("--num_workers",default=1,- help="Number of gunicorn workers to spin up",+ help="Number of uvicorn / gunicorn workers to spin up. By default, 1 uvicorn is used.",envvar="NUM_WORKERS",)@click.option("--api_base", default=None, help="API base URL.")@@ -653,7 +653,7 @@ def run_server( # noqa: PLR0915from litellm.proxy.proxy_server import app # noqauvicorn_args = {- "app": app,+ "app": "litellm.proxy.proxy_server:app","host": host,"port": port,}@@ -674,6 +674,7 @@ def run_server( # noqa: PLR0915uvicorn.run(**uvicorn_args,loop="uvloop",+ workers=num_workers,)elif run_gunicorn is True:# Gunicorn Application Class