tinyhumansai/openhuman · error

no default_model configured

Error message

no default_model configured

What it means

Doctor diagnostic: config.default_model is not set, so there is no fallback model for threads/turns that don't match a specific model route. Warn-level: chat still works when an explicit model or matching route is chosen per turn, but any path that expects the default (new threads, fallback routing) will fail or prompt for a model choice.

Source

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

        Err(err) => {
            items.push(DiagnosticItem::error(
                cat,
                format!("failed to read app session JWT: {err}"),
            ));
        }
    }

    // Model configured
    if config.default_model.is_some() {
        items.push(DiagnosticItem::ok(
            cat,
            format!(
                "default model: {}",
                config.default_model.as_deref().unwrap_or("?")
            ),
        ));
    } else {
        items.push(DiagnosticItem::warn(cat, "no default_model configured"));
    }

    // Temperature range
    if config.default_temperature >= 0.0 && config.default_temperature <= 2.0 {
        items.push(DiagnosticItem::ok(
            cat,
            format!(
                "temperature {:.1} (valid range 0.0-2.0)",
                config.default_temperature
            ),
        ));
    } else {
        items.push(DiagnosticItem::error(
            cat,
            format!(
                "temperature {:.1} is out of range (expected 0.0-2.0)",
                config.default_temperature
            ),

View on GitHub (pinned to 7491200858)

Solutions

  1. Set a default model in Settings (model/provider selection) or config.toml's default_model
  2. Verify at least one inference provider is configured and reachable first
  3. Re-run 'openhuman doctor' to confirm the item reports the configured model
  4. If routing should cover all cases, add model routes with matching hints instead of relying on the default
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at src/openhuman/platform/doctor/core.rs:231 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/7297fb6f28de038d. Report an issue: GitHub.