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 Enamakel06f89b71cd90
diff --git a/src/openhuman/inference/provider/openhuman_backend_model.rs b/src/openhuman/inference/provider/openhuman_backend_model.rs
index a0e1cc01b9..f13b4e7d63 100644
--- a/src/openhuman/inference/provider/openhuman_backend_model.rs
+++ b/src/openhuman/inference/provider/openhuman_backend_model.rs
@@ -481,7 +481,7 @@ impl ChatModel<()> for OpenHumanBackendModel {
Some(&self.profile)
}
- async fn invoke(&self, state: &(), request: ModelRequest) -> TaResult<ModelResponse> {
+ async fn invoke(&self, state: &(), request: ModelRequest) -> tinyinference::Result<ModelResponse> {
let model = self.build_wire_model()?;
let response = match model.invoke(state, with_thread_id(request)).await {
Ok(response) => response,
@@ -494,7 +494,7 @@ impl ChatModel<()> for OpenHumanBackendModel {
Ok(project_managed_usage(response))
}
- async fn stream(&self, state: &(), request: ModelRequest) -> TaResult<ModelStream> {
+ async fn stream(&self, state: &(), request: ModelRequest) -> tinyinference::Result<ModelStream> {
let model = self.build_wire_model()?;
// NOTE (streaming billing parity): the crate SSE parser sets `raw: None`
// on the terminal `Completed` response, so the `openhuman.billing` envelope