tinyhumansai/openhuman · error

Ollama /api/tags response is missing the `models` key — cann

Error message

Ollama /api/tags response is missing the `models` key — cannot verify embedding model `{model}`. Ollama API may have changed.

What it means

Doctor embedding-model probe: the /api/tags JSON parsed but has no top-level `models` array. Because Ollama's schema is assumed stable, this is reported explicitly as a possible API change rather than misreported as "model not installed". Consequence: the doctor cannot verify whether the configured embedding model is pulled, so it warns and stops rather than producing a false negative.

Source

Thrown at src/openhuman/platform/doctor/core.rs:948

    let body = match resp.text() {
        Ok(t) => t,
        Err(e) => {
            items.push(DiagnosticItem::warn(
                cat,
                format!("Ollama /api/tags response could not be read: {e}"),
            ));
            return;
        }
    };

    // Parse the JSON and extract the `models` array.  If the response is
    // malformed or the schema changed (missing `models` key), report that
    // explicitly instead of falling through to "model NOT installed".
    let models_array = match serde_json::from_str::<serde_json::Value>(&body) {
        Ok(v) => match v.get("models").and_then(|m| m.as_array()) {
            Some(arr) => arr.clone(),
            None => {
                items.push(DiagnosticItem::warn(
                    cat,
                    format!(
                        "Ollama /api/tags response is missing the `models` key — \
                         cannot verify embedding model `{model}`. Ollama API may have changed."
                    ),
                ));
                return;
            }
        },
        Err(e) => {
            items.push(DiagnosticItem::warn(
                cat,
                format!(
                    "Ollama /api/tags returned invalid JSON — \
                     cannot verify embedding model `{model}`: {e}"
                ),
            ));
            return;

View on GitHub (pinned to 7491200858)

Solutions

  1. Check the Ollama version; if /api/tags changed shape, update Ollama or adjust the probe
  2. Confirm you are probing the real Ollama daemon and not another service answering on that port
  3. Manually verify with `ollama list` that the embedding model is present
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at src/openhuman/platform/doctor/core.rs:948 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of tinyhumansai/openhuman@7491200858 (2026-08-17). Data as JSON: /api/errors/973cc78140804521. Report an issue: GitHub.