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(agents): use billable vision model for media agents
Steven Enamakel2ee2ecd36605
diff --git a/crates/openhuman-core/src/agent/registry/agents/image_agent/agent.toml b/crates/openhuman-core/src/agent/registry/agents/image_agent/agent.tomlindex 8e2d853a33..06e96f0aeb 100644--- a/crates/openhuman-core/src/agent/registry/agents/image_agent/agent.toml+++ b/crates/openhuman-core/src/agent/registry/agents/image_agent/agent.toml@@ -20,7 +20,7 @@ omit_memory_md = true# `bytedance-seed/seedream-5-0-lite` on OpenRouter — a separate model from# the one this agent's own turns run on.[model]-exact = "openrouter/qwen/qwen3.7-flash"+exact = "openrouter/qwen/qwen3.5-flash-02-23"[tools]# media_generate_image submits the generation and returns a saved local path;diff --git a/crates/openhuman-core/src/agent/registry/agents/video_agent/agent.toml b/crates/openhuman-core/src/agent/registry/agents/video_agent/agent.tomlindex 80be1702c1..f36ee6f173 100644--- a/crates/openhuman-core/src/agent/registry/agents/video_agent/agent.toml+++ b/crates/openhuman-core/src/agent/registry/agents/video_agent/agent.toml@@ -19,7 +19,7 @@ omit_memory_md = true# `media_generate_video`, which defaults to `bytedance/seedance-2.0-mini` on# OpenRouter — a separate model from the one this agent's own turns run on.[model]-exact = "openrouter/qwen/qwen3.7-flash"+exact = "openrouter/qwen/qwen3.5-flash-02-23"[tools]# media_generate_video submits the generation and returns a saved local path;diff --git a/crates/openhuman-core/src/agent/registry/agents/vision_agent/agent.toml b/crates/openhuman-core/src/agent/registry/agents/vision_agent/agent.tomlindex c857a01b73..b1381722a8 100644--- a/crates/openhuman-core/src/agent/registry/agents/vision_agent/agent.toml+++ b/crates/openhuman-core/src/agent/registry/agents/vision_agent/agent.toml@@ -17,7 +17,7 @@ omit_safety_preamble = true# reports it as image-enabled and the turn engine never strips the attached# image at the vision gate.[model]-exact = "openrouter/qwen/qwen3.7-flash"+exact = "openrouter/qwen/qwen3.5-flash-02-23"[tools]# Attached images arrive inline in the sub-agent's context via the multimodaldiff --git a/crates/openhuman-core/src/config/schema/types/model_ids.rs b/crates/openhuman-core/src/config/schema/types/model_ids.rsindex 2153533ae8..926b155191 100644--- a/crates/openhuman-core/src/config/schema/types/model_ids.rs+++ b/crates/openhuman-core/src/config/schema/types/model_ids.rs@@ -71,22 +71,23 @@ pub const WORKLOAD_ROLES: [&str; 8] = [/// capabilities that a single `vision` hint cannot distinguish, so each media/// agent is pinned to its own exact OpenRouter passthrough model instead.///-/// Qwen3.7 Flash: cheap, native tool calling, text+image+video input, 1M-/// context, $0.03 / $0.13 per 1M input/output tokens.+/// Qwen3.5 Flash: native tool calling and text+image+video input. Unlike+/// Qwen3.7 Flash, its OpenRouter pricing has no cache-write component, so it+/// passes the backend passthrough catalog's billability filter.////// Used by `vision_agent` (image/video understanding: describe, OCR, chart/// and UI-element reading).-pub const MODEL_MEDIA_UNDERSTANDING: &str = "openrouter/qwen/qwen3.7-flash";+pub const MODEL_MEDIA_UNDERSTANDING: &str = "openrouter/qwen/qwen3.5-flash-02-23";/// Same model as [`MODEL_MEDIA_UNDERSTANDING`], pinned separately for/// `image_agent` (image GENERATION delegate) so the two roles can be retuned/// independently without one edit silently moving the other.-pub const MODEL_IMAGE_GENERATION_AGENT: &str = "openrouter/qwen/qwen3.7-flash";+pub const MODEL_IMAGE_GENERATION_AGENT: &str = "openrouter/qwen/qwen3.5-flash-02-23";/// Same model as [`MODEL_MEDIA_UNDERSTANDING`], pinned separately for/// `video_agent` (video GENERATION delegate) so the two roles can be retuned/// independently without one edit silently moving the other.-pub const MODEL_VIDEO_GENERATION_AGENT: &str = "openrouter/qwen/qwen3.7-flash";+pub const MODEL_VIDEO_GENERATION_AGENT: &str = "openrouter/qwen/qwen3.5-flash-02-23";/// Every managed model id that carries multimodal (image/video) input/// capability, whether or not it is also the workload's `vision` hintdiff --git a/crates/openhuman-core/src/inference/model_context_tests.rs b/crates/openhuman-core/src/inference/model_context_tests.rsindex 571518e907..13a346c134 100644--- a/crates/openhuman-core/src/inference/model_context_tests.rs+++ b/crates/openhuman-core/src/inference/model_context_tests.rs@@ -178,7 +178,7 @@ fn oh_tier_vision_map_is_exhaustively_pinned() {}/// R4 regression: the media agents' new `exact` model pin-/// (`openrouter/qwen/qwen3.7-flash`, replacing the deprecated `hint:vision`)+/// (`openrouter/qwen/qwen3.5-flash-02-23`, replacing the deprecated `hint:vision`)/// must be reported vision-capable through both the tier-map gate and the/// combined `model_supports_vision` facade — the two call sites/// `dispatch.rs:256` and `runner.rs:1536` actually gate image/video