mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-08-02 08:44:44 +00:00
mv sdk tests
This commit is contained in:
parent
3cf4fdb740
commit
546fd84177
1 changed files with 5 additions and 1 deletions
|
@ -10,7 +10,11 @@ from llama_stack_client.lib.inference.event_logger import EventLogger
|
|||
|
||||
def test_text_chat_completion(llama_stack_client):
|
||||
# non-streaming
|
||||
available_models = [model.identifier for model in llama_stack_client.models.list()]
|
||||
available_models = [
|
||||
model.identifier
|
||||
for model in llama_stack_client.models.list()
|
||||
if model.identifier.startswith("meta-llama")
|
||||
]
|
||||
assert len(available_models) > 0
|
||||
model_id = available_models[0]
|
||||
response = llama_stack_client.inference.chat_completion(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue