File tree Expand file tree Collapse file tree 3 files changed +18
-1
lines changed Expand file tree Collapse file tree 3 files changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,10 @@ See [ollama/docs/api.md](https://github.com/ollama/ollama/blob/main/docs/api.md)
42
42
- [ list.py] ( list.py )
43
43
44
44
45
+ ### Ollama Show - Display model properties and capabilities
46
+ - [ show.py] ( show.py )
47
+
48
+
45
49
### Ollama ps - Show model status with CPU/GPU usage
46
50
- [ ps.py] ( ps.py )
47
51
@@ -55,7 +59,6 @@ Requirement: `pip install tqdm`
55
59
- [ create.py] ( create.py )
56
60
57
61
58
-
59
62
### Ollama Embed - Generate embeddings with a model
60
63
- [ embed.py] ( embed.py )
61
64
Original file line number Diff line number Diff line change
1
+ from ollama import ShowResponse , show
2
+
3
+ response : ShowResponse = show ('gemma3' )
4
+ print ('Model Information:' )
5
+ print (f'Modified at: { response .modified_at } ' )
6
+ print (f'Template: { response .template } ' )
7
+ print (f'Modelfile: { response .modelfile } ' )
8
+ print (f'License: { response .license } ' )
9
+ print (f'Details: { response .details } ' )
10
+ print (f'Model Info: { response .modelinfo } ' )
11
+ print (f'Parameters: { response .parameters } ' )
12
+ print (f'Capabilities: { response .capabilities } ' )
Original file line number Diff line number Diff line change @@ -506,6 +506,8 @@ class ShowResponse(SubscriptableBaseModel):
506
506
507
507
parameters : Optional [str ] = None
508
508
509
+ capabilities : Optional [List [str ]] = None
510
+
509
511
510
512
class ProcessResponse (SubscriptableBaseModel ):
511
513
class Model (SubscriptableBaseModel ):
You can’t perform that action at this time.
0 commit comments