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)
4242- [ list.py] ( list.py )
4343
4444
45+ ### Ollama Show - Display model properties and capabilities
46+ - [ show.py] ( show.py )
47+
48+
4549### Ollama ps - Show model status with CPU/GPU usage
4650- [ ps.py] ( ps.py )
4751
@@ -55,7 +59,6 @@ Requirement: `pip install tqdm`
5559- [ create.py] ( create.py )
5660
5761
58-
5962### Ollama Embed - Generate embeddings with a model
6063- [ embed.py] ( embed.py )
6164
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):
506506
507507 parameters : Optional [str ] = None
508508
509+ capabilities : Optional [List [str ]] = None
510+
509511
510512class ProcessResponse (SubscriptableBaseModel ):
511513 class Model (SubscriptableBaseModel ):
You can’t perform that action at this time.
0 commit comments