Skip to content

Commit addcee0

Browse files
committed
fix: llama-stack-client providers list
currently this command always errors out due to using .items() on a list. Fix the loop that looks at the list response Signed-off-by: Charlie Doern <cdoern@redhat.com>
1 parent 78de6d4 commit addcee0

File tree

1 file changed

+3
-3
lines changed
  • src/llama_stack_client/lib/cli/providers

1 file changed

+3
-3
lines changed

src/llama_stack_client/lib/cli/providers/list.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ def list_providers(ctx):
1919
for header in headers:
2020
table.add_column(header)
2121

22-
for k, v in providers_response.items():
23-
for provider_info in v:
24-
table.add_row(k, provider_info.provider_id, provider_info.provider_type)
22+
for response in providers_response:
23+
print(response)
24+
table.add_row(response.api, response.provider_id, response.provider_type)
2525

2626
console.print(table)

0 commit comments

Comments
 (0)