apis_to_serve -> apis

This commit is contained in:
Ashwin Bharambe 2024-10-05 23:16:11 -07:00 committed by Ashwin Bharambe
parent 59302a86df
commit 60dead6196
7 changed files with 38 additions and 48 deletions

View file

@ -154,7 +154,7 @@ class StackConfigure(Subcommand):
config = StackRunConfig(
built_at=datetime.now(),
image_name=image_name,
apis_to_serve=[],
apis=[],
providers={},
models=[],
shields=[],

View file

@ -46,6 +46,7 @@ class StackRun(Subcommand):
import pkg_resources
import yaml
from termcolor import cprint
from llama_stack.distribution.build import ImageType
from llama_stack.distribution.utils.config_dirs import BUILDS_BASE_DIR
@ -75,6 +76,7 @@ class StackRun(Subcommand):
)
return
cprint(f"Using config `{config_file}`", "green")
with open(config_file, "r") as f:
config = StackRunConfig(**yaml.safe_load(f))