From 708d61b2079a0ff3db835efe8351b7dde0534875 Mon Sep 17 00:00:00 2001 From: Sir-Photch Date: Sun, 8 Oct 2023 20:42:49 +0200 Subject: [PATCH] make --test respect host and port --- litellm/proxy/proxy_cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litellm/proxy/proxy_cli.py b/litellm/proxy/proxy_cli.py index 695b91b49d..1b922b3a71 100644 --- a/litellm/proxy/proxy_cli.py +++ b/litellm/proxy/proxy_cli.py @@ -95,7 +95,7 @@ def run_server(host, port, api_base, model, deploy, debug, temperature, max_toke click.echo('LiteLLM: Making a test ChatCompletions request to your proxy') import openai if test == True: # flag value set - api_base = "http://0.0.0.0:8000" + api_base = f"http://{host}:{port}" else: api_base = test openai.api_base = api_base