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 name in openhuman backend

Steven Enamakelb84549006fb5
diff --git a/crates/openhuman-core/src/inference/provider/openhuman_backend_model.rs b/crates/openhuman-core/src/inference/provider/openhuman_backend_model.rs
index 8a6697abc4..ce63a85951 100644
--- a/crates/openhuman-core/src/inference/provider/openhuman_backend_model.rs
+++ b/crates/openhuman-core/src/inference/provider/openhuman_backend_model.rs
@@ -263,6 +263,12 @@ impl OpenHumanBackendModel {
Ok(
OpenAiModel::compatible_provider(PROVIDER_LABEL, token, base_url, &self.default_model)
.with_native_tool_calling(self.native_tool_calling)
+ // The backend relays any caller-named upstream; Anthropic's prompt
+ // cache is opt-in, so a Claude model needs `cache_control`
+ // breakpoints (other upstreams cache on their own and never get
+ // them). Managed aliases (`hint:*`) resolve server-side, where the
+ // backend places the breakpoints itself.
+ .with_anthropic_cache_control(true)
.with_request_options(ProviderRequestOptions {
http: Some(managed_inference_http_client()),
..ProviderRequestOptions::default()