tinyhumansai/openhuman · error

model route "{}" has empty model

Error message

model route "{}" has empty model

What it means

Doctor warning from the model_routes loop: an [[model_routes]] entry has a hint but its `model` field is empty. Even if the hint matches during routing, the entry carries no model id to use, so resolution either falls through to defaults or produces an unusable route. The interpolated name is the entry's hint.

Source

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

            ),
        ));
    }

    // Reliability: fallback providers (legacy; ignored at runtime)
    if !config.reliability.fallback_providers.is_empty() {
        items.push(DiagnosticItem::warn(
            cat,
            "reliability.fallback_providers is set but ignored (single backend)",
        ));
    }

    // Model routes validation
    for route in &config.model_routes {
        if route.hint.is_empty() {
            items.push(DiagnosticItem::warn(cat, "model route with empty hint"));
        }
        if route.model.is_empty() {
            items.push(DiagnosticItem::warn(
                cat,
                format!("model route \"{}\" has empty model", route.hint),
            ));
        }
    }

    // Embedding routes validation
    for route in &config.embedding_routes {
        if route.hint.trim().is_empty() {
            items.push(DiagnosticItem::warn(cat, "embedding route with empty hint"));
        }
        if let Some(reason) = embedding_provider_validation_error(&route.provider) {
            items.push(DiagnosticItem::warn(
                cat,
                format!(
                    "embedding route \"{}\" uses invalid provider \"{}\": {}",
                    route.hint, route.provider, reason
                ),

View on GitHub (pinned to 7491200858)

Solutions

  1. Set the `model` field (e.g. "gpt-4o-mini", "claude-sonnet-4") on the named [[model_routes]] entry
  2. Verify the provider referenced by the route actually serves that model id
  3. Delete the entry if it is unused
Defensive patterns

Strategy: validation

When it happens

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