This commit is contained in:
Xi Yan 2024-09-20 13:02:10 -07:00
parent 9c33587003
commit 3787408863
4 changed files with 28 additions and 36 deletions

View file

@ -378,12 +378,7 @@ def main(yaml_config: str, port: int = 5000, disable_ipv6: bool = False):
cprint(f"StackRunConfig: {config}", "blue")
app = FastAPI()
# check if routing table exists
if config.provider_routing_table is not None:
impls, specs = asyncio.run(resolve_impls_with_routing(config))
else:
# keeping this for backwards compatibility
impls, specs = asyncio.run(resolve_impls(config.provider_map))
impls, specs = asyncio.run(resolve_impls_with_routing(config))
if Api.telemetry in impls:
setup_logger(impls[Api.telemetry])