fix: skip apis with no providers during llama stack build (#1835)

# What does this PR do?
closes #1834 

## Test Plan
`llama stack build` successfully
This commit is contained in:
Matthew Farrellee 2025-03-29 11:39:35 -04:00 committed by GitHub
parent a182705ade
commit a4c086cee0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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),