mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-06-27 18:50:41 +00:00
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:
parent
a182705ade
commit
a4c086cee0
1 changed files with 2 additions and 0 deletions
|
@ -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),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue