Skip to content

Commit f6a6598

Browse files
authored
* more robust image type * lint
1 parent b646167 commit f6a6598

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ $CONDA_PREFIX/bin/pip install -e .
8282

8383
## The Llama CLI
8484

85-
The `llama` CLI makes it easy to work with the Llama Stack set of tools, including installing and running Distributions, downloading models, studying model prompt formats, etc. Please see the [CLI reference](docs/cli_reference.md) for details. Please see the [Getting Started](docs/getting_started.md) guide for running a Llama Stack server.
85+
The `llama` CLI makes it easy to work with the Llama Stack set of tools, including installing and running Distributions, downloading models, studying model prompt formats, etc. Please see the [CLI reference](docs/cli_reference.md) for details. Please see the [Getting Started](docs/getting_started.md) guide for running a Llama Stack server.
8686

8787

8888
## Llama Stack Client SDK

llama_stack/cli/stack/build.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ def _add_arguments(self):
7474
self.parser.add_argument(
7575
"--image-type",
7676
type=str,
77-
help="Image Type to use for the build. This can be either conda or docker. If not specified, will use conda by default",
78-
default="conda",
77+
help="Image Type to use for the build. This can be either conda or docker. If not specified, will use the image type from the template config.",
78+
choices=["conda", "docker"],
7979
)
8080

8181
def _run_stack_build_command_from_build_config(
@@ -183,7 +183,8 @@ def _run_stack_build_command(self, args: argparse.Namespace) -> None:
183183
with open(build_path, "r") as f:
184184
build_config = BuildConfig(**yaml.safe_load(f))
185185
build_config.name = args.name
186-
build_config.image_type = args.image_type
186+
if args.image_type:
187+
build_config.image_type = args.image_type
187188
self._run_stack_build_command_from_build_config(build_config)
188189

189190
return

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy