diff --git a/ramalama/cli.py b/ramalama/cli.py index 6e72aaddc..03ef56d4a 100644 --- a/ramalama/cli.py +++ b/ramalama/cli.py @@ -191,7 +191,7 @@ def configure_arguments(parser): ) parser.add_argument( "--image", - default=accel_image(CONFIG, nopull=True), + default=accel_image(CONFIG, pull=False), help="OCI container image to run with the specified AI model", action=OverrideDefaultAction, completer=local_images, diff --git a/ramalama/common.py b/ramalama/common.py index 1f817b43d..1cbca523b 100644 --- a/ramalama/common.py +++ b/ramalama/common.py @@ -627,7 +627,7 @@ class AccelImageArgsOtherRuntimeRAG(Protocol): AccelImageArgs = None | AccelImageArgsVLLMRuntime | AccelImageArgsOtherRuntime | AccelImageArgsOtherRuntimeRAG -def accel_image(config: Config, nopull=False) -> str: +def accel_image(config: Config, pull=True) -> str: """ Selects and the appropriate image based on config, arguments, environment. """ @@ -650,7 +650,7 @@ def accel_image(config: Config, nopull=False) -> str: return "registry.redhat.io/rhelai1/ramalama-vllm" vers = minor_release() - if nopull or attempt_to_use_versioned(config.engine, image, vers, True): + if not pull or attempt_to_use_versioned(config.engine, image, vers, True): return f"{image}:{vers}" return f"{image}:latest"