MCPcopy Index your code
hub / github.com/PaddlePaddle/FastDeploy / __init__

Method __init__

fastdeploy/config.py:1566–1576  ·  view source on GitHub ↗
(self, args: dict)

Source from the content-addressed store, hash-verified

1564 """
1565
1566 def __init__(self, args: dict):
1567 self.router = args["router"]
1568 if self.router is not None and not self.router.startswith(("http://", "https://")):
1569 self.router = f"http://{self.router}"
1570
1571 self.api_server_host = get_host_ip()
1572 self.api_server_port = args["port"]
1573 if args["metrics_port"] is not None:
1574 self.metrics_port = args["metrics_port"]
1575 else:
1576 self.metrics_port = self.api_server_port
1577
1578 def __str__(self):
1579 return json.dumps({key: value for key, value in self.__dict__.items()})

Callers

nothing calls this directly

Calls 1

get_host_ipFunction · 0.90

Tested by

no test coverage detected