返回目录
模型与 MCP 插件

dsh-image-model-router

Blue-2571/dsh-image-model-router

该仓库暂未提供项目说明。

Stars
0
Forks
0
Issues
0
更新
2 个月前

PROJECT TOPICS

项目标签

INSTALL REFERENCE

安装参考

未验证
dsh plugin --profile web add github:Blue-2571/dsh-image-model-router

该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。

PROJECT README

README

@blue/dsh-image-model-router

English · 简体中文

A DeepSeek Harness (dsh) plugin that routes an agent request to a vision model only when the user message contains an image, and keeps the original model otherwise.

  • Text-only turns keep your normal model (e.g. deepseek-v4-pro).
  • Turns that carry an image (a screenshot, a photo, a diagram) are routed to a multimodal model — by default deepseek-v4-flash-vision-exp.
  • Per-agent, per-step: the flag is keyed by the agent object in a WeakMap, so it can never leak across agents or turns.

Install

dsh plugin --profile web add @blue/dsh-image-model-router

The row is disabled by default so installing never silently changes routing. Enable it from the profile's own cordis.patch.yml:

- id: dsh-image-model-router
  disabled: false
  config:
    provider: deepseek-official
    model: deepseek-v4-flash-vision-exp

Then restart the profile (dsh web) and hard-refresh the browser.

Install from a Git checkout (development)

git clone https://github.com/Blue-2571/dsh-image-model-router.git
cd dsh-image-model-router
dsh plugin --profile web add .

Configuration

Key Default Description
provider deepseek-official Provider id the vision request is routed to.
model deepseek-v4-flash-vision-exp Vision model id. Any image-capable route your provider advertises works here.

How it works

user message with image
        │
        ▼
agent/pre-step (waterfall) ── detect image block ──► flag agent
        │
        ▼
agent/request (waterfall) ── flagged? ──► swap provider/model, clear flag
        │
        ▼
vision model answers

Image detection walks nested tool-result content the same way the harness's own image policy does, so an image produced by a tool result is treated as image input too.

License

MIT

CLASSIFICATION EVIDENCE

分类依据

项目类型插件
功能分类模型与 MCP
规则置信度中

系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。