MCPcopy Create free account
hub / github.com/PaddlePaddle/FastDeploy / check_param

Function check_param

fastdeploy/entrypoints/openai/multi_api_server.py:142–149  ·  view source on GitHub ↗
(ports, num_servers)

Source from the content-addressed store, hash-verified

140
141
142def check_param(ports, num_servers):
143 logger.info(f"check param {ports}, {num_servers}")
144 assert len(ports) == num_servers, "Number of ports must match num-servers"
145 for port in ports:
146 logger.info(f"check port {port}")
147 if not is_port_available("0.0.0.0", int(port)):
148 raise RuntimeError(f"Port {port} is not available.")
149 return True
150
151
152def main():

Callers 4

start_serversFunction · 0.85

Calls 2

is_port_availableFunction · 0.90
infoMethod · 0.45