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
refactor(inference): drop the managed backend chat model
Steven Enamakel1349ae421e32
diff --git a/crates/openhuman-core/src/inference/provider/mod.rs b/crates/openhuman-core/src/inference/provider/mod.rsindex fc464cfffb..4cb08b961f 100644--- a/crates/openhuman-core/src/inference/provider/mod.rs+++ b/crates/openhuman-core/src/inference/provider/mod.rs@@ -10,7 +10,7 @@ pub mod error_code;pub mod factory;pub(crate) mod fallback_diagnostics;pub(crate) mod openai_codex;-/// Crate-native managed OpenHuman backend as a host `ChatModel` (issue #4727).+/// Provider-neutral managed-provider pieces that stay in the core.pub mod openhuman_backend_model;pub mod ops;pub mod types;@@ -32,5 +32,5 @@ pub use factory::{create_chat_model_in, create_chat_model_with_model_id_in, probe_inference_readiness,provider_for_role, role_for_model_tier, BYOK_INCOMPLETE_SENTINEL,};-pub use openhuman_backend_model::{OpenHumanBackendModel, PROVIDER_LABEL};+pub use openhuman_backend_model::PROVIDER_LABEL;pub use ops::*;diff --git a/crates/openhuman-core/src/inference/provider/openhuman_backend_model.rs b/crates/openhuman-core/src/inference/provider/openhuman_backend_model.rsindex 96bd666e5d..c52fbc19eb 100644--- a/crates/openhuman-core/src/inference/provider/openhuman_backend_model.rs+++ b/crates/openhuman-core/src/inference/provider/openhuman_backend_model.rs@@ -66,17 +66,6 @@ pub(crate) fn is_managed_endpoint_for_api_key(endpoint: &str) -> bool {/// a call — see [`without_reasoning`].pub const REASONING_OFF_METADATA_KEY: &str = "openhuman_reasoning_off";-/// Mark `request` as not needing the model to reason first. Provider-neutral:-/// `ModelRequest.metadata` never reaches the wire, so a BYOK or local provider-/// ignores it. The managed backend model turns it into `reasoning: { enabled:-/// false }` ([`apply_reasoning_hint`]), which the backend forwards to OpenRouter-/// only. For short structured helper calls (follow-up suggestions) reasoning-/// adds seconds and more tokens than the answer itself, for no quality gain.-pub(crate) fn without_reasoning(mut request: ModelRequest) -> ModelRequest {- if !request.metadata.is_object() {- request.metadata = Value::Object(serde_json::Map::new());- }-/// Mark `request` as not needing the model to reason first. Provider-neutral:/// `ModelRequest.metadata` never reaches the wire, so a BYOK or local provider/// ignores it. The managed provider turns it into `reasoning: { enabled: