docker / docker/model-runner

`/api/show` returns no `capabilities` and empty `details` fields

Open
#1,046 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
651
Forks
155
PR merge metrics
No merged PRs in 30d

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/models returns {"id","object","created","owned_by","dmr"}
  • docker model inspect ai/functiongemma returns config, 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 engine 29.7.2
  • Backend llama.cpp b9879-metal, macOS, Apple Silicon
  • Model: ai/functiongemma

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

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.

Assessment

Tech stack
go, ollama
Domain
api, backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
64/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.