The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
fix(provider): remove anthropic cache control from backend model
Steven Enamakelc84615e71146
diff --git a/crates/openhuman-core/src/inference/provider/openhuman_backend_model.rs b/crates/openhuman-core/src/inference/provider/openhuman_backend_model.rsindex ce63a85951..8a6697abc4 100644--- a/crates/openhuman-core/src/inference/provider/openhuman_backend_model.rs+++ b/crates/openhuman-core/src/inference/provider/openhuman_backend_model.rs@@ -263,12 +263,6 @@ 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()diff --git a/crates/openhuman-core/src/inference/provider/openhuman_backend_model_stream_tests.rs b/crates/openhuman-core/src/inference/provider/openhuman_backend_model_stream_tests.rsindex d20e876b39..fdecc941d3 100644--- a/crates/openhuman-core/src/inference/provider/openhuman_backend_model_stream_tests.rs+++ b/crates/openhuman-core/src/inference/provider/openhuman_backend_model_stream_tests.rs@@ -190,6 +190,7 @@ async fn spawn_capturing_sse_server() -> (String, std::sync::Arc<std::sync::Mute/// other, otherwise every call re-bills the whole stable prefix.#[tokio::test]async fn managed_stream_marks_the_cacheable_prefix_for_anthropic_models_only() {+ use futures::StreamExt;use tinyinference_llm::model::{PromptSegment, SegmentRole};for (model, expect_markers) in [