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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

jayrinaldime
Copy link

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
Author

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

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.

2 participants