From 5614af1ddfba73d8769720da336be6c6468b9b8f Mon Sep 17 00:00:00 2001 From: Charlie Doern Date: Fri, 14 Mar 2025 07:53:21 -0400 Subject: [PATCH] fix: `llama-stack-client provider inspect` should use retrieve after regenerating the client with stainless and updating the openAPI spec, `inspect` is now `retreive`. fix `llama-stack-client provider inspect` Signed-off-by: Charlie Doern --- src/llama_stack_client/lib/cli/providers/inspect.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/llama_stack_client/lib/cli/providers/inspect.py b/src/llama_stack_client/lib/cli/providers/inspect.py index 546ef612..fc03d00d 100644 --- a/src/llama_stack_client/lib/cli/providers/inspect.py +++ b/src/llama_stack_client/lib/cli/providers/inspect.py @@ -14,9 +14,9 @@ def inspect_provider(ctx, provider_id): client = ctx.obj["client"] console = Console() - providers_response = client.providers.inspect(provider_id=provider_id) + providers_response = client.providers.retrieve(provider_id=provider_id) - if providers_response is None: + if not providers_response: click.secho("Provider not found", fg="red") raise click.exceptions.Exit(1)