mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-06-28 10:54:19 +00:00
feat: convert provider config to a file path
currently provider.config is a dictionary. Introduce the ability to specify either a file path or the current in-file dictionary. Allowing users to specify a file path enables more robust config management allowing stack administrators to swap in different provider configs seamlessly Signed-off-by: Charlie Doern <cdoern@redhat.com>
This commit is contained in:
parent
68d8f2186f
commit
9e3ea654c1
44 changed files with 266 additions and 235 deletions
|
@ -156,7 +156,7 @@ class StackRun(Subcommand):
|
|||
if callable(getattr(args, arg)):
|
||||
continue
|
||||
if arg == "config" and template_name:
|
||||
server_args.config = str(config_file)
|
||||
server_args.template = str(template_name)
|
||||
else:
|
||||
setattr(server_args, arg, getattr(args, arg))
|
||||
|
||||
|
@ -169,6 +169,8 @@ class StackRun(Subcommand):
|
|||
|
||||
if config_file:
|
||||
run_args.extend(["--config", str(config_file)])
|
||||
if template_name:
|
||||
run_args.extend(["--template", str(template_name)])
|
||||
|
||||
if args.env:
|
||||
for env_var in args.env:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue