mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 02:34:29 +00:00
make --test respect host and port
This commit is contained in:
parent
64c9795871
commit
708d61b207
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue