File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 4949from vllm .benchmarks .lib .utils import convert_to_pytorch_benchmark_format , write_to_json
5050from vllm .transformers_utils .tokenizer import get_tokenizer
5151from vllm .utils .gc_utils import freeze_gc_heap
52+ from vllm .utils .network_utils import join_host_port
5253
5354MILLISECONDS_TO_SECONDS_CONVERSION = 1000
5455
@@ -1333,8 +1334,9 @@ async def main_async(args: argparse.Namespace) -> dict[str, Any]:
13331334 api_url = f"{ args .base_url } { args .endpoint } "
13341335 base_url = f"{ args .base_url } "
13351336 else :
1336- api_url = f"http://{ args .host } :{ args .port } { args .endpoint } "
1337- base_url = f"http://{ args .host } :{ args .port } "
1337+ host_port = join_host_port (args .host , args .port )
1338+ api_url = f"http://{ host_port } { args .endpoint } "
1339+ base_url = f"http://{ host_port } "
13381340
13391341 # Headers
13401342 headers = None
You can’t perform that action at this time.
0 commit comments