mirror of
https://github.com/tiennm99/litellm.git
synced 2026-08-22 16:24:14 +00:00
(feat) print num_workers when starting prox
This commit is contained in:
@@ -474,6 +474,10 @@ def run_server(
|
||||
|
||||
# before starting server, read num_workers as an env variable
|
||||
num_workers = os.getenv("NUM_WORKERS", num_workers)
|
||||
|
||||
print(
|
||||
f"\033[1;32mLiteLLM Proxy: Starting server on {host}:{port} with {num_workers} workers\033[0m\n"
|
||||
)
|
||||
gunicorn_options = {
|
||||
"bind": f"{host}:{port}",
|
||||
"workers": num_workers, # default is 1
|
||||
|
||||
Reference in New Issue
Block a user