Integrate vision sidecar routing with model presets

Add a strict per-preset sidecar slot, Main-first routing, one-call multi-image analysis, parallel-worker image resolution, and inline model settings with focused regression coverage.
This commit is contained in:
Alessandro committed 2026-08-25 19:26:25 +02:00
1 parent 80bcb3cf0d
commit 59f5ae03ea
21 files changed
+880 -150

No files matched your search

@@ -51,10 +51,15 @@ async def build_prompt(agent: Agent) -> str:
prompt = agent.read_prompt("agent.system.tools.md", tools=tools_str)
# vision support
from plugins._model_config.helpers.model_config import get_chat_model_config
from plugins._model_config.helpers.model_config import (
get_chat_model_config,
use_vision_sidecar,
)
chat_cfg = get_chat_model_config(agent)
if chat_cfg.get("vision", False):
if use_vision_sidecar(agent):
prompt += "\n\n" + agent.read_prompt("agent.system.tools_vision_sidecar.md")
elif chat_cfg.get("vision", False):
prompt += "\n\n" + agent.read_prompt("agent.system.tools_vision.md")
return prompt