From a4c086cee054a1be1a54b64dd7862897eb2a2cec Mon Sep 17 00:00:00 2001 From: Matthew Farrellee Date: Sat, 29 Mar 2025 11:39:35 -0400 Subject: [PATCH] fix: skip apis with no providers during `llama stack build` (#1835) # What does this PR do? closes #1834 ## Test Plan `llama stack build` successfully --- llama_stack/cli/stack/_build.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/llama_stack/cli/stack/_build.py b/llama_stack/cli/stack/_build.py index e440799d1..ac1933e0e 100644 --- a/llama_stack/cli/stack/_build.py +++ b/llama_stack/cli/stack/_build.py @@ -137,6 +137,8 @@ def run_stack_build_command(args: argparse.Namespace) -> None: providers = dict() for api, providers_for_api in get_provider_registry().items(): available_providers = [x for x in providers_for_api.keys() if x not in ("remote", "remote::sample")] + if not available_providers: + continue api_provider = prompt( "> Enter provider for API {}: ".format(api.value), completer=WordCompleter(available_providers),