Skip to content

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

refactor(inference): update model default constant usage

Steven Enamakel17fbbb99ac72
diff --git a/crates/openhuman-embed/src/host_internals.rs b/crates/openhuman-embed/src/host_internals.rs
index ef55c7c0f3..b7fcc835aa 100644
--- a/crates/openhuman-embed/src/host_internals.rs
+++ b/crates/openhuman-embed/src/host_internals.rs
@@ -133,6 +133,7 @@ pub mod config {
// tinyhumans integrations: the Composio routing-mode strings.
pub use openhuman_core::config::schema::{
COMPOSIO_MODE_BACKEND, COMPOSIO_MODE_DIRECT, COMPOSIO_MODE_DISABLED,
+ DelegateAgentConfig, ModelRouteConfig, TeamModelConfig,
};
pub mod cloud_providers {
pub use openhuman_core::config::schema::cloud_providers::{
diff --git a/crates/openhuman-tinyhumans/src/inference/backend_error_code_tests.rs b/crates/openhuman-tinyhumans/src/inference/backend_error_code_tests.rs
index 5606716861..a60bbf94cf 100644
--- a/crates/openhuman-tinyhumans/src/inference/backend_error_code_tests.rs
+++ b/crates/openhuman-tinyhumans/src/inference/backend_error_code_tests.rs
@@ -191,7 +191,7 @@ fn managed_envelope_gate_rejects_byo_payload_carrying_error_code() {
#[test]
fn hosted_classifier_drives_core_observability_without_core_token_ownership() {
use openhuman_embed::__host::inference_registry::register_backend_error_classifier;
- use openhuman_embed::__host::observability::{expected_error_kind, ExpectedErrorKind};
+ use openhuman_embed::__host::core::observability::{expected_error_kind, ExpectedErrorKind};
use std::sync::Arc;
register_backend_error_classifier(Arc::new(super::classify));
diff --git a/crates/openhuman-tinyhumans/src/inference/managed_model_tests.rs b/crates/openhuman-tinyhumans/src/inference/managed_model_tests.rs
index c2149d657f..644c813ebb 100644
--- a/crates/openhuman-tinyhumans/src/inference/managed_model_tests.rs
+++ b/crates/openhuman-tinyhumans/src/inference/managed_model_tests.rs
@@ -1,5 +1,5 @@
use super::super::managed_reasoning::{apply_reasoning_hint, with_thread_id};
-use super::managed_reasoning::REASONING_OFF_METADATA_KEY;
+use super::super::managed_reasoning::REASONING_OFF_METADATA_KEY;
use super::*;
use serde_json::Value;
use tinyinference_llm::model::ChatModel;
@@ -99,8 +99,8 @@ fn managed_model_supports_only_serializable_native_media_inputs() {
#[test]
fn resolve_model_normalizes_blank_and_trims_non_empty_values() {
- assert_eq!(resolve_model(""), super::tiers::MODEL_MANAGED_DEFAULT);
- assert_eq!(resolve_model(" \t\n"), super::tiers::MODEL_MANAGED_DEFAULT);
+ assert_eq!(resolve_model(""), super::super::tiers::MODEL_MANAGED_DEFAULT);
+ assert_eq!(resolve_model(" \t\n"), super::super::tiers::MODEL_MANAGED_DEFAULT);
assert_eq!(resolve_model(" reasoning-v1 "), "reasoning-v1");
assert_eq!(resolve_model("hint:reasoning"), "hint:reasoning");
}
diff --git a/crates/openhuman-tinyhumans/src/inference/mod.rs b/crates/openhuman-tinyhumans/src/inference/mod.rs
index c15bdb94b0..add9aa90be 100644
--- a/crates/openhuman-tinyhumans/src/inference/mod.rs
+++ b/crates/openhuman-tinyhumans/src/inference/mod.rs
@@ -22,6 +22,7 @@ mod managed_reasoning;
mod managed_session;
mod managed_usage;
mod tiers;
+pub(crate) use tiers::MODEL_MANAGED_DEFAULT;
use std::sync::Arc;
diff --git a/crates/openhuman-tinyhumans/src/register_tests.rs b/crates/openhuman-tinyhumans/src/register_tests.rs
index 4a3920d8cc..451f5d1b4f 100644
--- a/crates/openhuman-tinyhumans/src/register_tests.rs
+++ b/crates/openhuman-tinyhumans/src/register_tests.rs
@@ -17,7 +17,7 @@ async fn boot_registration_supplies_hosted_model_default_and_normalizer_before_c
let config = openhuman_embed::__host::config::Config::default();
assert_eq!(
config.default_model.as_deref(),
- Some(crate::inference::tiers::MODEL_MANAGED_DEFAULT)
+ Some(crate::inference::MODEL_MANAGED_DEFAULT)
);
let mut legacy = openhuman_embed::__host::config::Config::default();
@@ -31,6 +31,6 @@ async fn boot_registration_supplies_hosted_model_default_and_normalizer_before_c
openhuman_embed::__host::config::migrations::run_pending(&mut legacy).await;
assert_eq!(
legacy.default_model.as_deref(),
- Some(crate::inference::tiers::MODEL_MANAGED_DEFAULT)
+ Some(crate::inference::MODEL_MANAGED_DEFAULT)
);
}