Skip to content

Commit d6e855e

Browse files
authored
Update the example to reflect current API (#131)
# What does this PR do? Update the example to reflect current API ## Test Plan Copy paste the example in the README and check the output. Without this change an error is raised: ```python python3 hello.py Traceback (most recent call last): File "/Users/bmuthuka/wa/meta-llama/baiju-experiments/hello.py", line 8, in <module> response = client.inference.chat_completion( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/miniconda3/envs/myml/lib/python3.12/site-packages/llama_stack_client/_utils/_utils.py", line 274, in wrapper raise TypeError(msg) TypeError: Missing required arguments; Expected either ('messages' and 'model_id') or ('messages', 'model_id' and 'stream') arguments to be given ```
1 parent 74b98eb commit d6e855e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ response = client.inference.chat_completion(
4242
role="user",
4343
),
4444
],
45-
model="meta-llama/Llama-3.2-3B-Instruct",
45+
model_id="meta-llama/Llama-3.2-3B-Instruct",
4646
stream=False,
4747
)
4848
print(response)

0 commit comments

Comments
 (0)