Skip to content

Commit 400c428

Browse files
committed
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 <cdoern@redhat.com>
1 parent f063f2d commit 400c428

File tree

1 file changed

+1
-5
lines changed
  • src/llama_stack_client/lib/cli/providers

1 file changed

+1
-5
lines changed

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

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,7 @@ 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)
18-
19-
if providers_response is None:
20-
click.secho("Provider not found", fg="red")
21-
raise click.exceptions.Exit(1)
17+
providers_response = client.providers.retrieve(provider_id=provider_id)
2218

2319
console.print(f"provider_id={providers_response.provider_id}")
2420
console.print(f"provider_type={providers_response.provider_type}")

0 commit comments

Comments
 (0)