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): handle missing discovery module gracefully
Steven Enamakel33e940a30f3a
diff --git a/crates/openhuman-core/src/inference/provider/factory.rs b/crates/openhuman-core/src/inference/provider/factory.rsindex 2a528ebb8d..5b4d86b8ee 100644--- a/crates/openhuman-core/src/inference/provider/factory.rs+++ b/crates/openhuman-core/src/inference/provider/factory.rs@@ -41,6 +41,7 @@ pub(crate) mod access_gates;mod chat_model;mod cloud_slug;mod credentials;+mod discovery;mod local_runtime;mod managed_backend;mod primary_cloud;@@ -56,6 +57,7 @@ pub use chat_model::{create_chat_model_with_model_id, probe_inference_readiness,};pub(crate) use credentials::openai_bearer_is_oauth;+pub(crate) use discovery::model_limits_request;pub use credentials::{auth_key_for_slug, lookup_key_for_slug, redact_endpoint};pub(crate) use local_runtime::create_local_chat_model_from_string;pub(crate) use managed_backend::make_openhuman_backend_model;diff --git a/crates/openhuman-core/src/inference/provider/factory/discovery.rs b/crates/openhuman-core/src/inference/provider/factory/discovery.rsindex 91e3e07dc0..567fe6bbc5 100644--- a/crates/openhuman-core/src/inference/provider/factory/discovery.rs+++ b/crates/openhuman-core/src/inference/provider/factory/discovery.rs@@ -78,7 +78,7 @@ pub(crate) fn model_limits_request(AuthStyle::None | AuthStyle::OpenhumanJwt => request,};}- if let Some(options) = openrouter_default_provider_options(&endpoint) {+ if let Some(options) = super::cloud_slug::openrouter_default_provider_options(&endpoint) {request = request.with_pinned_providers(pinned_openrouter_providers(&options));}Some(request)