Skip to content

[Bug] Does not provide capabilities for /show api call #494

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
adar2378 opened this issue Apr 4, 2025 · 1 comment
Open

[Bug] Does not provide capabilities for /show api call #494

adar2378 opened this issue Apr 4, 2025 · 1 comment

Comments

@adar2378
Copy link

adar2378 commented Apr 4, 2025

Hi, please notice that ollama api docs says it provides capabilities via /show endpoint.

https://github.com/ollama/ollama/blob/main/docs/api.md#response-26

But this python sdk does not support that. Without it, it's hard to determine which models have what kind of capabilities.

@ckuethe
Copy link

ckuethe commented Apr 9, 2025

Same. My workaround is to do something like this:

model_name = "codestral"
model_info = ollama_client._request_raw("POST", "/api/show",json={"name":model_name}).json()
print(model_info["capabilities"])

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

No branches or pull requests

2 participants