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): expose inference backend ID and models module
Steven Enamakel0ee5f33c1766
diff --git a/crates/openhuman-core/src/inference/provider/factory.rs b/crates/openhuman-core/src/inference/provider/factory.rsindex 3cee39a584..92ad47ae4b 100644--- a/crates/openhuman-core/src/inference/provider/factory.rs+++ b/crates/openhuman-core/src/inference/provider/factory.rs@@ -137,6 +137,8 @@ use tinyinference_llm::providers::openai::AuthStyle as CompatAuthStyle;/// Sentinel meaning "use the OpenHuman backend session JWT".pub const PROVIDER_OPENHUMAN: &str = "openhuman";+/// Provider id used for the managed OpenHuman inference backend.+pub const INFERENCE_BACKEND_ID: &str = PROVIDER_OPENHUMAN;/// Prefix for Ollama-local providers: `"ollama:<model>"`.pub const OLLAMA_PROVIDER_PREFIX: &str = "ollama:";/// Prefix for LM Studio-local providers: `"lmstudio:<model>"`.diff --git a/crates/openhuman-core/src/inference/provider/mod.rs b/crates/openhuman-core/src/inference/provider/mod.rsindex 3771d5ae52..a3d9b6936c 100644--- a/crates/openhuman-core/src/inference/provider/mod.rs+++ b/crates/openhuman-core/src/inference/provider/mod.rs@@ -9,11 +9,12 @@ pub mod error_classify;pub mod error_code;pub mod factory;pub(crate) mod fallback_diagnostics;+pub mod http_error;pub(crate) mod model;+pub mod models;pub(crate) mod openai_codex;/// Provider-neutral managed-provider pieces that stay in the core.pub mod openhuman_backend_model;-pub mod ops;pub mod types;#[allow(unused_imports)]@@ -31,7 +32,9 @@ pub(crate) use factory::is_raw_passthrough_model;pub use factory::{create_chat_model_from_string, create_chat_model_from_string_with_model_id,create_chat_model_in, create_chat_model_with_model_id_in, probe_inference_readiness,- provider_for_role, role_for_model_tier, BYOK_INCOMPLETE_SENTINEL,+ provider_for_role, role_for_model_tier, BYOK_INCOMPLETE_SENTINEL, INFERENCE_BACKEND_ID,+};+pub use models::{+ list_configured_models, list_configured_models_from_config, synthesize_local_runtime_entry,};pub use openhuman_backend_model::PROVIDER_LABEL;-pub use ops::*;