mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 11:14:04 +00:00
(fix) proxy server clean print statements
This commit is contained in:
parent
03940eab8a
commit
24c0a65347
1 changed files with 0 additions and 1 deletions
|
@ -159,7 +159,6 @@ def run_server(host, port, api_base, api_version, model, alias, add_key, headers
|
||||||
import uvicorn
|
import uvicorn
|
||||||
except:
|
except:
|
||||||
raise ImportError("Uvicorn needs to be imported. Run - `pip install uvicorn`")
|
raise ImportError("Uvicorn needs to be imported. Run - `pip install uvicorn`")
|
||||||
print(f"\033[32mLiteLLM: Test your local endpoint with: \"litellm --test\" [In a new terminal tab]\033[0m\n")
|
|
||||||
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)
|
uvicorn.run("litellm.proxy.proxy_server:app", host=host, port=port, workers=num_workers)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue