Skip to content

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

test(agent_registry): update model constants in agent loading tests

Steven Enamakeld55a3b3acf43
diff --git a/crates/openhuman-core/src/agent_registry/agents/loader_tests_builtin_registration_tests.rs b/crates/openhuman-core/src/agent_registry/agents/loader_tests_builtin_registration_tests.rs
index 123e0e4ee8..2094a1e935 100644
--- a/crates/openhuman-core/src/agent_registry/agents/loader_tests_builtin_registration_tests.rs
+++ b/crates/openhuman-core/src/agent_registry/agents/loader_tests_builtin_registration_tests.rs
@@ -208,7 +208,7 @@ fn vision_agent_loads_on_its_pinned_multimodal_model() {
let def = find("vision_agent");
assert!(matches!(
def.model,
- ModelSpec::Exact(ref m) if m == crate::config::MODEL_MEDIA_UNDERSTANDING
+ ModelSpec::Exact(ref m) if m == "openrouter/qwen/qwen3.5-flash-02-23"
));
let orchestrator = find("orchestrator");
diff --git a/crates/openhuman-core/src/agent_registry/agents/loader_tests_specialist_agents_tests.rs b/crates/openhuman-core/src/agent_registry/agents/loader_tests_specialist_agents_tests.rs
index 3f70025b93..15be47f918 100644
--- a/crates/openhuman-core/src/agent_registry/agents/loader_tests_specialist_agents_tests.rs
+++ b/crates/openhuman-core/src/agent_registry/agents/loader_tests_specialist_agents_tests.rs
@@ -301,14 +301,10 @@ fn no_builtin_agent_declares_the_deprecated_vision_hint() {
/// passthrough models (regression R4), not left on `Inherit` or a `Hint`.
#[test]
fn media_agents_are_pinned_to_their_exact_models() {
- use crate::config::{
- MODEL_IMAGE_GENERATION_AGENT, MODEL_MEDIA_UNDERSTANDING, MODEL_VIDEO_GENERATION_AGENT,
- };
-
for (agent_id, expected_model) in [
- ("vision_agent", MODEL_MEDIA_UNDERSTANDING),
- ("image_agent", MODEL_IMAGE_GENERATION_AGENT),
- ("video_agent", MODEL_VIDEO_GENERATION_AGENT),
+ ("vision_agent", "openrouter/qwen/qwen3.5-flash-02-23"),
+ ("image_agent", "openrouter/qwen/qwen3.5-flash-02-23"),
+ ("video_agent", "openrouter/qwen/qwen3.5-flash-02-23"),
] {
let def = find(agent_id);
match &def.model {