kikocis/llama-stack public
Changesets · Branches · Tags · Compare
| Changeset | 52bad24c3a1a9f94fa0be6472d05bac0c2e58239fd780be1866084c03240b53b |
|---|---|
| Author | Xi Yan <xiyan@meta.com> · 2024-09-18 23:48 -07:00 |
| Committer | GitHub <noreply@github.com> · 2024-09-18 23:48 -07:00 |
| Parents | 16aa28ec0337 |
1 file changed
modified llama_stack/cli/stack/build.py +7 −1
| @@ -191,7 +191,13 @@ | ||
| 191 | 191 | return |
| 192 | 192 | |
| 193 | 193 | 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 | + | |
| 195 | 201 | image_type = prompt( |
| 196 | 202 | "> Enter the image type you want your Llama Stack to be built as (docker or conda): ", |
| 197 | 203 | validator=Validator.from_callable( |