[GH-ISSUE #10966] Determine thinking capability via API ? #32985

Closed
opened 2026-04-22 15:01:45 -05:00 by GiteaMirror · 3 comments
Owner

Originally created by @bakman2 on GitHub (Jun 4, 2025).
Original GitHub issue: https://github.com/ollama/ollama/issues/10966

How can i determine if a model has thinking capability via API ?
This is useful when having a front-end where one can enable/disable thinking when it is available.

Originally created by @bakman2 on GitHub (Jun 4, 2025). Original GitHub issue: https://github.com/ollama/ollama/issues/10966 How can i determine if a model has thinking capability via API ? This is useful when having a front-end where one can enable/disable thinking when it is available.
GiteaMirror added the feature request label 2026-04-22 15:01:45 -05:00
Author
Owner

@rick-github commented on GitHub (Jun 4, 2025):

$ curl -s localhost:11434/api/show -d '{"model":"qwen3"}' | jq .capabilities
[
  "completion",
  "tools",
  "thinking"
]
<!-- gh-comment-id:2939430197 --> @rick-github commented on GitHub (Jun 4, 2025): ``` $ curl -s localhost:11434/api/show -d '{"model":"qwen3"}' | jq .capabilities [ "completion", "tools", "thinking" ] ```
Author
Owner

@bakman2 commented on GitHub (Jun 5, 2025):

That's what i was looking for indeed, however:

curl -s localhost:11434/api/show -d '{"model":"qwen3:1.7b"}' | jq .capabilities
[
  "completion",
  "tools"
]
curl http://localhost:11434/api/generate -d '{
  "model": "qwen3:1.7b",
  "prompt": "hi"
}'

{
"model":"qwen3:1.7b",
"created_at":"2025-06-05T05:01:24.664308446Z",
"response":"\u003cthink\u003e",
"done":false
}
<!-- gh-comment-id:2942758089 --> @bakman2 commented on GitHub (Jun 5, 2025): That's what i was looking for indeed, however: ``` curl -s localhost:11434/api/show -d '{"model":"qwen3:1.7b"}' | jq .capabilities [ "completion", "tools" ] ``` ``` curl http://localhost:11434/api/generate -d '{ "model": "qwen3:1.7b", "prompt": "hi" }' { "model":"qwen3:1.7b", "created_at":"2025-06-05T05:01:24.664308446Z", "response":"\u003cthink\u003e", "done":false } ```
Author
Owner

@rick-github commented on GitHub (Jun 5, 2025):

Have you re-pulled the model since 0.9.0 was released? Thinking support requires an updated template.

<!-- gh-comment-id:2944094975 --> @rick-github commented on GitHub (Jun 5, 2025): Have you re-pulled the model since 0.9.0 was released? Thinking support requires an updated template.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#32985