fix server api to serve

This commit is contained in:
Xi Yan 2024-09-27 15:28:21 -07:00
parent 43744455d7
commit 21452a162b

View file

@ -433,9 +433,6 @@ def main(yaml_config: str, port: int = 5000, disable_ipv6: bool = False):
if config.apis_to_serve:
apis_to_serve = set(config.apis_to_serve)
for inf in builtin_automatically_routed_apis():
if inf.router_api.value in apis_to_serve:
apis_to_serve.add(inf.routing_table_api)
else:
apis_to_serve = set(impls.keys())
@ -445,6 +442,7 @@ def main(yaml_config: str, port: int = 5000, disable_ipv6: bool = False):
endpoints = all_endpoints[api]
impl = impls[api]
cprint(f"API={api_str}, endpoints={endpoints}", "green")
provider_spec = specs[api]
if (
isinstance(provider_spec, RemoteProviderSpec)