We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4826e57 commit c5c74ceCopy full SHA for c5c74ce
1 file changed
llm/llama-stack-client-list-models.py
@@ -0,0 +1,13 @@
1
+#!/usr/bin/python3
2
+
3
+from llama_stack_client import LlamaStackClient
4
5
+# uses LLAMA_STACK_CLIENT_BASE_URL
6
+for m in LlamaStackClient().models.list():
7
+ try:
8
+ print(m.custom_metadata.get("provider_id"), m.custom_metadata['model_type'], m.id)
9
+ except Exception:
10
11
+ print(m.model_type, m.identifier)
12
13
+ print(m)
0 commit comments