`/api/show` returns no `capabilities` and empty `details` fields
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 64/100
Research direction
Start by tracing the /api/show entry point and its model metadata response, using the provided curl request with ai/functiongemma as a reproduction. Compare the response with the Ollama-compatible contract; done means capabilities and populated details fields are returned without treating empty values as real metadata.
Written by the indexing model from the issue text.
Description
Summary
The Ollama-compatible /api/show returns a details object whose fields are empty strings, and no capabilities key.
curl -s -X POST http://localhost:12434/api/show \
-H "Content-Type: application/json" -d '{"model":"ai/functiongemma"}' | jq
{"details": {"format": "gguf", "family": "", "families": [""],
"parameter_size": "", "quantization_level": ""}}
For reference, Ollama returns capabilities from this endpoint (e.g. ["completion","vision","tools","thinking"]), and clients commonly use it to decide whether to offer tool-using features for a given model.
The other surfaces do not carry this information either:
GET /engines/v1/modelsreturns{"id","object","created","owned_by","dmr"}docker model inspect ai/functiongemmareturnsconfig,created,id,tags
As a result, a client written against the Ollama-compatible API cannot determine what a model supports.
A second, smaller problem is that the details fields are empty strings rather than missing keys, so callers may read them as real values.
Suggested resolution
Populate capabilities and the details fields in /api/show, matching the Ollama-compatible contract.
Related: #1045. When tool support is missing at runtime, the response does not indicate it, so the absence cannot be detected after the fact either.
Environment
- Model Runner client
v1.2.6, Docker Desktop engine29.7.2 - Backend
llama.cpp b9879-metal, macOS, Apple Silicon - Model:
ai/functiongemma
- Dominant language
- Go
- Stars
- 665
- Forks
- 161
- Avg merge
- 4h 25m
- Merged PRs (30d)
- 18
Getting set up
- Ships a Dockerfile or Docker Compose file
- No pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from docker/model-runner
-
Difficulty 1/5 Under an hour Newbie friendliness 85/100
docker/model-runner#1118 ·
Maintainers usually reply within 1 day
-
Difficulty 3/5 1-2 days Newbie friendliness 20/100
docker/model-runner#1107 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 43/100
docker/model-runner#1103 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 3/5 Half a day Newbie friendliness 45/100
docker/model-runner#1100 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
docker/model-runner#1077 · 1 comment ·
Maintainers usually reply within 1 day
All issues in docker/model-runner
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
Difficulty 1/5 Under an hour Newbie friendliness 82/100
-
Add CybeDefendOpen
Difficulty 1/5 Under an hour Newbie friendliness 66/100
slavakurilyak/awesome-ai-agents#1031 ·