ollama-python/examples/show.py
JRinaldi 5d7c63fae1
Some checks failed
test / test (push) Has been cancelled
test / lint (push) Has been cancelled
types: add capabilities to show response. (#511)
2025-05-14 19:27:48 -07:00

13 lines
476 B
Python

from ollama import ShowResponse, show
response: ShowResponse = show('gemma3')
print('Model Information:')
print(f'Modified at: {response.modified_at}')
print(f'Template: {response.template}')
print(f'Modelfile: {response.modelfile}')
print(f'License: {response.license}')
print(f'Details: {response.details}')
print(f'Model Info: {response.modelinfo}')
print(f'Parameters: {response.parameters}')
print(f'Capabilities: {response.capabilities}')