Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

refactor(inference): import openrouter options from registry directly

Steven Enamakel3ee81ec571ed
diff --git a/crates/openhuman-core/src/inference/provider/factory/cloud_slug.rs b/crates/openhuman-core/src/inference/provider/factory/cloud_slug.rs
index 5bf5343ffc..20c4695ad6 100644
--- a/crates/openhuman-core/src/inference/provider/factory/cloud_slug.rs
+++ b/crates/openhuman-core/src/inference/provider/factory/cloud_slug.rs
@@ -409,8 +409,3 @@ pub(super) fn try_create_cloud_slug_chat_model_from_string_with_native_tools(
});
Some(chat.map(|chat| (chat, effective_model)))
}
-
-/// Baked request options for a direct OpenRouter endpoint (`provider.sort =
-/// price`), `None` for every other host. The policy and its rationale live with
-/// the registry in `tinyinference-llm`.
-pub(crate) use tinyinference_llm::providers::registry::openrouter_default_provider_options;
diff --git a/crates/openhuman-core/src/inference/provider/factory_crate_native_diagnostics_tests.rs b/crates/openhuman-core/src/inference/provider/factory_crate_native_diagnostics_tests.rs
index 867184b780..cfc43e2df0 100644
--- a/crates/openhuman-core/src/inference/provider/factory_crate_native_diagnostics_tests.rs
+++ b/crates/openhuman-core/src/inference/provider/factory_crate_native_diagnostics_tests.rs
@@ -1,6 +1,6 @@
use super::*;
-use crate::inference::provider::factory::cloud_slug::openrouter_default_provider_options;
+use tinyinference_llm::providers::registry::openrouter_default_provider_options;
#[test]
fn crate_native_chat_model_factory_preserves_invalid_route_diagnostics() {