Skip to content

Commit e33b5bf

Browse files
authored
fix: llama-stack-client provider inspect should use retrieve (#202)
# What does this PR do? after regenerating the client with stainless and updating the openAPI spec, `inspect` is now `retreive`. fix `llama-stack-client provider inspect` ## Test Plan <img width="450" alt="Screenshot 2025-03-14 at 7 55 32 AM" src="https://github.com/user-attachments/assets/f37db091-9da5-4908-a6af-85a17b4aeb01" /> Signed-off-by: Charlie Doern <[email protected]>
1 parent f063f2d commit e33b5bf

File tree

1 file changed

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

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ def inspect_provider(ctx, provider_id):
1414
client = ctx.obj["client"]
1515
console = Console()
1616

17-
providers_response = client.providers.inspect(provider_id=provider_id)
17+
providers_response = client.providers.retrieve(provider_id=provider_id)
1818

19-
if providers_response is None:
19+
if not providers_response:
2020
click.secho("Provider not found", fg="red")
2121
raise click.exceptions.Exit(1)
2222

0 commit comments

Comments
 (0)