Skip to content

add capabilities to show response. #511

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
May 15, 2025

Conversation

jayrinaldime
Copy link
Contributor

Added capabilities to show response.

This will allow filtering models based on capabilities such as embedding or vision

@jayrinaldime jayrinaldime changed the title add capabilities to show ressponse. add capabilities to show response. Apr 25, 2025
@ParthSareen
Copy link
Member

Thanks for this! Didn't realize that we didn't have a show example. Instead of having just the capabilities displayed it would be nicer to have the example just showcase the show response and keep it contained.

Something like this maybe:

response: ShowResponse = show("llama3.2:3b")
print(f"Modified at: {response.modified_at}\n")
print(f"Template: {response.template}\n")
print(f"Modelfile: {response.modelfile}\n")
print(f"License: {response.license}\n")
print(f"Details: {response.details}\n")
print(f"Model Info: {response.modelinfo}\n")
print(f"Parameters: {response.parameters}\n")
print(f"Capabilities: {response.capabilities}\n")

@jayrinaldime
Copy link
Contributor Author

I understand. I updated the show example to display all properties of the show response.

@taketwo
Copy link

taketwo commented May 14, 2025

@ParthSareen In https://github.com/taketwo/llm-ollama we'd benefit if the capabilities were exposed in Python API. Is there anything we can do to support merging this PR?

@ParthSareen ParthSareen merged commit 5d7c63f into ollama:main May 15, 2025
2 checks passed
@jayrinaldime jayrinaldime deleted the jrinaldi/show-capabilities branch May 15, 2025 02:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants