default entrypoint

This commit is contained in:
Xi Yan 2024-09-30 11:53:13 -07:00
parent 340e134629
commit fd04ad9e1e
3 changed files with 10 additions and 3 deletions

View file

@ -408,7 +408,11 @@ async def resolve_impls_with_routing(run_config: StackRunConfig) -> Dict[Api, An
return impls, specs
def main(yaml_config: str, port: int = 5000, disable_ipv6: bool = False):
def main(
yaml_config: str = "./llamastack-run.yaml",
port: int = 5000,
disable_ipv6: bool = False,
):
with open(yaml_config, "r") as fp:
config = StackRunConfig(**yaml.safe_load(fp))