{"record":{"id":"42d9eff5b6007424","repo":"tinyhumansai/openhuman","slug":"turn-model-source-is-missing-a-model","errorCode":null,"errorMessage":"turn model source is missing a model","messagePattern":"turn model source is missing a model","errorType":"exception","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"src/openhuman/agent/tinyagents/mod.rs","lineNumber":1608,"sourceCode":"                    .split(':')\n                    .next()\n                    .unwrap_or(&provider_string)\n                    .to_string()\n            };\n            return build_turn_models_crate(\n                &cn.role,\n                &cn.config,\n                model,\n                temperature,\n                context_window,\n                cn.primary_override.as_deref(),\n                provider_id,\n                !is_local,\n                !is_local,\n                cn.force_text_mode,\n            );\n        }\n        Err(anyhow::anyhow!(\"turn model source is missing a model\"))\n    }\n\n    /// Build a standalone summarizer [`ChatModel`](tinyagents::harness::model::ChatModel)\n    /// over this source's provider — a fresh adapter (own error slot) for one-off\n    /// summary calls outside the main turn (e.g. the sub-agent cap-hit checkpoint),\n    /// so the caller can `invoke` without naming the `Provider` trait. The output\n    /// cap rides the per-call `ModelRequest`, not the model.\n    pub(crate) fn build_summarizer(\n        &self,\n        model: &str,\n        temperature: f64,\n    ) -> anyhow::Result<Arc<dyn tinyagents::harness::model::ChatModel<()>>> {\n        if let Some(direct) = &self.direct_model {\n            let profile = direct.profile().cloned().unwrap_or_default();\n            return Ok(Arc::new(\n                ProfileOverrideModel::new(direct.clone(), profile)\n                    .with_request_model(model)\n                    .with_request_temperature(temperature),","sourceCodeStart":1590,"sourceCodeEnd":1626,"githubUrl":"https://github.com/tinyhumansai/openhuman/blob/749120085864ce16e0f273c7b86fac7740b39c5b/src/openhuman/agent/tinyagents/mod.rs#L1590-L1626","documentation":"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).","triggerScenarios":"Thrown at src/openhuman/agent/tinyagents/mod.rs:1608 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","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"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"749120085864ce16e0f273c7b86fac7740b39c5b","analyzedAt":"2026-08-17T21:21:45.363Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}