Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

fix(provider): handle missing model config in OpenHuman backend

Steven Enamakel20e7deb17043
diff --git a/src/openhuman/inference/provider/openhuman_backend_model.rs b/src/openhuman/inference/provider/openhuman_backend_model.rs
index 3a7c7b381a..c3804cee35 100644
--- a/src/openhuman/inference/provider/openhuman_backend_model.rs
+++ b/src/openhuman/inference/provider/openhuman_backend_model.rs
@@ -155,10 +155,10 @@ impl OpenHumanBackendModel {
/// Resolve the current JWT + base URL and build a fresh crate `OpenAiModel`
/// (Bearer). Rebuilt per call because the session JWT rotates.
- fn build_wire_model(&self) -> TaResult<OpenAiModel> {
+ fn build_wire_model(&self) -> tinyinference::Result<OpenAiModel> {
let token = self
.resolve_bearer()
- .map_err(|e| TinyAgentsError::Model(e.to_string()))?;
+ .map_err(|e| TiError::Model(e.to_string()))?;
let base_url = self.base_url();
// The hosted API is chat-completions only (no `/v1/responses`); auth is a
// plain bearer JWT. The tier/model rides `request.model`, which the backend