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
chore: files changed src/openhuman/inference/provider/crate_openai.rs,src/openhuman/inference/provid
Steven Enamakelb5e38abe795b
diff --git a/src/openhuman/inference/provider/crate_openai.rs b/src/openhuman/inference/provider/crate_openai.rsindex b4bd560a23..36cfae890c 100644--- a/src/openhuman/inference/provider/crate_openai.rs+++ b/src/openhuman/inference/provider/crate_openai.rs@@ -205,6 +205,7 @@ pub(crate) fn make_crate_openai_chat_model(responses_omit_max_output_tokens: false,extra_query_params: &[],user_agent: None,+ explicit_cache_control: false,})}@@ -248,6 +249,7 @@ pub(crate) fn make_crate_local_runtime_chat_model(responses_omit_max_output_tokens: false,extra_query_params: &[],user_agent: None,+ explicit_cache_control: false,})}diff --git a/src/openhuman/inference/provider/crate_openai_tests.rs b/src/openhuman/inference/provider/crate_openai_tests.rsindex d3c7fc20f8..b2f7e70168 100644--- a/src/openhuman/inference/provider/crate_openai_tests.rs+++ b/src/openhuman/inference/provider/crate_openai_tests.rs@@ -40,6 +40,7 @@ fn builds_a_chat_model_with_the_configured_profile() {responses_omit_max_output_tokens: false,extra_query_params: &[],user_agent: None,+ explicit_cache_control: false,});// The built model carries the configured provider + model on its profile.let profile = model.profile().expect("openai models expose a profile");@@ -85,6 +86,7 @@ fn builder_applies_local_none_auth_without_panicking() {responses_omit_max_output_tokens: false,extra_query_params: &[],user_agent: None,+ explicit_cache_control: false,});}@@ -107,3 +109,12 @@ fn local_runtime_builder_disables_native_tools_and_vision() {assert!(!profile.tool_calling);assert!(!profile.modalities.image_in);}++#[test]+fn openrouter_endpoints_are_recognised_for_explicit_cache_control() {+ assert!(endpoint_is_openrouter("https://openrouter.ai/api/v1"));+ assert!(endpoint_is_openrouter("HTTPS://OpenRouter.ai/api/v1/"));+ assert!(!endpoint_is_openrouter("https://api.openai.com/v1"));+ assert!(!endpoint_is_openrouter("https://notopenrouter.ai/api/v1"));+ assert!(!endpoint_is_openrouter("https://example.com/openrouter.ai/"));+}