Skip to content

Commit 626805a

Browse files
authored
fix: broken .retrieve call using identifier= (#135)
# What does this PR do? identifier is not a valid argument for `retrieve` but model_id is. ``` ╰─ llama-stack-client models get meta-llama/Llama-3.2-3B-Instruct ╭────────────────────────────────────────────────────────────────────────────────────╮ │ Failed to get model details │ │ │ │ Error Type: TypeError │ │ Details: ModelsResource.retrieve() got an unexpected keyword argument 'identifier' │ ╰────────────────────────────────────────────────────────────────────────────────────╯ ``` [//]: # (If resolving an issue, uncomment and update the line below) [//]: # (Closes #[issue-number]) ## Test Plan the error now is: ``` ╰─ llama-stack-client models get meta-llama/Llama-3.2-3B-Instruct ╭────────────────────────────────────────────────────╮ │ Failed to get model details │ │ │ │ Error Type: NotFoundError │ │ Details: Error code: 404 - {'detail': 'Not Found'} │ ╰────────────────────────────────────────────────────╯ ``` Signed-off-by: Charlie Doern <[email protected]>
1 parent 6b14eee commit 626805a

File tree

1 file changed

+1
-1
lines changed
  • src/llama_stack_client/lib/cli/models

1 file changed

+1
-1
lines changed

src/llama_stack_client/lib/cli/models/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def get_model(ctx, model_id: str):
7272
client = ctx.obj["client"]
7373
console = Console()
7474

75-
models_get_response = client.models.retrieve(identifier=model_id)
75+
models_get_response = client.models.retrieve(model_id=model_id)
7676

7777
if not models_get_response:
7878
console.print(

0 commit comments

Comments
 (0)