mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-06-28 02:53:30 +00:00
Fixes #966. Verified that: 1. Correct list of APIs are printed out when running `llama stack list-providers` 2. `llama stack list-providers <api>` works as expected. --------- Signed-off-by: Yuan Tang <terrytangyuan@gmail.com>
This commit is contained in:
parent
840344975d
commit
3f9764d50c
1 changed files with 2 additions and 2 deletions
|
@ -22,9 +22,9 @@ class StackListProviders(Subcommand):
|
|||
self.parser.set_defaults(func=self._run_providers_list_cmd)
|
||||
|
||||
def _add_arguments(self):
|
||||
from llama_stack.distribution.datatypes import Api
|
||||
from llama_stack.distribution.distribution import providable_apis
|
||||
|
||||
api_values = [a.value for a in Api]
|
||||
api_values = [api.value for api in providable_apis()]
|
||||
self.parser.add_argument(
|
||||
"api",
|
||||
type=str,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue