tinyhumansai/openhuman · error · anyhow::Error
turn model source is missing a model
Error message
turn model source is missing a model
What it means
build_turn_models reached the end of turn model-source resolution with no model id — the provider/config combination for the turn yields an empty model string. The preceding branches handle overrides, channel configs and local providers; this sentinel fires when the resolved provider config declares no model and no override supplied one. Faulting input is the provider configuration (or the turn's model source field).
Solutions
- Set a model on the provider config being used for the turn
- Pass an explicit model override for the turn/session
- If a custom provider is intended, verify its config declares both endpoint and model
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at src/openhuman/agent/tinyagents/mod.rs:1608 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/42d9eff5b6007424.
Report an issue: GitHub.
Appendix: source
Thrown at src/openhuman/agent/tinyagents/mod.rs:1608
.split(':')
.next()
.unwrap_or(&provider_string)
.to_string()
};
return build_turn_models_crate(
&cn.role,
&cn.config,
model,
temperature,
context_window,
cn.primary_override.as_deref(),
provider_id,
!is_local,
!is_local,
cn.force_text_mode,
);
}
Err(anyhow::anyhow!("turn model source is missing a model"))
}
/// Build a standalone summarizer [`ChatModel`](tinyagents::harness::model::ChatModel)
/// over this source's provider — a fresh adapter (own error slot) for one-off
/// summary calls outside the main turn (e.g. the sub-agent cap-hit checkpoint),
/// so the caller can `invoke` without naming the `Provider` trait. The output
/// cap rides the per-call `ModelRequest`, not the model.
pub(crate) fn build_summarizer(
&self,
model: &str,
temperature: f64,
) -> anyhow::Result<Arc<dyn tinyagents::harness::model::ChatModel<()>>> {
if let Some(direct) = &self.direct_model {
let profile = direct.profile().cloned().unwrap_or_default();
return Ok(Arc::new(
ProfileOverrideModel::new(direct.clone(), profile)
.with_request_model(model)
.with_request_temperature(temperature),View on GitHub (pinned to 7491200858)