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(embedding): handle missing model config in embedding host
Steven Enamakeldf1f43e63878
diff --git a/crates/openhuman-core/src/agent/session_host/builder/factory.rs b/crates/openhuman-core/src/agent/session_host/builder/factory.rsindex cbfe5808a3..6aafb5cb59 100644--- a/crates/openhuman-core/src/agent/session_host/builder/factory.rs+++ b/crates/openhuman-core/src/agent/session_host/builder/factory.rs@@ -9,7 +9,6 @@ use crate::agent::host_runtime;use crate::agent::prompts::SystemPromptBuilder;use crate::agent::session_host::types::OpenHumanSessionHost;use crate::config::Config;-use crate::inference::provider;use crate::security::SecurityPolicy;use crate::tools;use anyhow::Result;@@ -349,7 +348,7 @@ impl OpenHumanSessionHost {// fetched asynchronously on session start land in the prompt.// `Inline`/`File` sources still resolve to just the archetype// body and get wrapped by [`SystemPromptBuilder::for_subagent`].- let mut prompt_builder = match target_def {+ let prompt_builder = match target_def {Some(def) => match &def.system_prompt {PromptSource::Dynamic(build) => SystemPromptBuilder::from_dynamic(*build),PromptSource::Inline(text) => SystemPromptBuilder::for_subagent(diff --git a/crates/openhuman-core/src/config/ops/model.rs b/crates/openhuman-core/src/config/ops/model.rsindex ae35ef89c7..925fa6a70d 100644--- a/crates/openhuman-core/src/config/ops/model.rs+++ b/crates/openhuman-core/src/config/ops/model.rs@@ -249,12 +249,6 @@ pub async fn apply_model_settings(config: &mut Config,update: ModelSettingsPatch,) -> Result<Outcome<serde_json::Value>, String> {- // #5324: snapshot the embedder selection BEFORE applying the patch so the- // failed-job un-park below only fires when the embedder actually changed.- // This path also saves chat/reasoning/vision/etc. providers; without this- // gate, saving an unrelated model setting would restart every terminally- // `unrecoverable` embedding job and re-run the same external failure.- let prev_embeddings_provider = config.embeddings_provider.clone();if let Some(api_url) = update.api_url {config.api_url = if api_url.trim().is_empty() {Nonediff --git a/crates/openhuman-core/src/inference/embedding_host/mod.rs b/crates/openhuman-core/src/inference/embedding_host/mod.rsindex f398fc811a..7dedbd2a1c 100644--- a/crates/openhuman-core/src/inference/embedding_host/mod.rs+++ b/crates/openhuman-core/src/inference/embedding_host/mod.rs@@ -32,14 +32,6 @@ pub use provider_trait::{format_embedding_signature, EmbeddingProvider, TinyInferenceEmbeddingProvider,};pub use rpc::provider_from_config;-// Reached through this re-export by `modules::memory_host`, which serves the-// seam over the bus. `memory::host_impls` served the same seam in-process and-// reached it the same way, until the in-process engine left the test build too-// (openhuman#6161) and took that file with it. `embeddings::rpc` itself names-// the function through `super::rpc`, not through here, so this gate does not-// narrow it.-#[cfg(any(test, feature = "modules"))]-pub(crate) use rpc::resolve_api_key;pub use schemas::{all_controller_schemas as all_embeddings_controller_schemas,all_registered_controllers as all_embeddings_registered_controllers,diff --git a/crates/openhuman-core/src/modules/host.rs b/crates/openhuman-core/src/modules/host.rsindex cf4eb05ab2..0b91d873e7 100644--- a/crates/openhuman-core/src/modules/host.rs+++ b/crates/openhuman-core/src/modules/host.rs@@ -32,7 +32,6 @@//! and also prevents an embedding host from accidentally tying module lifetime//! to an independently managed application task runtime.-use std::sync::Arc;use std::sync::OnceLock;use tinybus::broker::Broker;