Elffuss BraidHub

kikocis/llama-stack public

fix prompt with name args (#80)

Changeset52bad24c3a1a9f94fa0be6472d05bac0c2e58239fd780be1866084c03240b53b
AuthorXi Yan <xiyan@meta.com> · 2024-09-18 23:48 -07:00
CommitterGitHub <noreply@github.com> · 2024-09-18 23:48 -07:00
Parents16aa28ec0337

Browse the files at this changeset

1 file changed

modified llama_stack/cli/stack/build.py +7 −1
@@ -191,7 +191,13 @@
191191 return
192192
193193 if not args.config and not args.template:
194- name = prompt("> Enter a name for your Llama Stack (e.g. my-local-stack): ")
194+ if not args.name:
195+ name = prompt(
196+ "> Enter a name for your Llama Stack (e.g. my-local-stack): "
197+ )
198+ else:
199+ name = args.name
200+
195201 image_type = prompt(
196202 "> Enter the image type you want your Llama Stack to be built as (docker or conda): ",
197203 validator=Validator.from_callable(