huashu-design
alchaincyf
Huashu Design 3.0 · 在 agent 里打一句话,拿回能交付的设计:网页 / App 原型 / 可编辑 PPTX / 动画 / 信息图 · 六个候选挑三个方向 · 84 种带样张的风格库 · 越用越懂你的外观账本与设计体检 · HTML-native design skill for Claude Code, Codex, Cursor & any agent
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:thanderming/dsh-auto-vision
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
English | 简体中文
Let a text-only model see images. When the selected model has no image input, or recognition is unusable (for example the call fails or returns nothing), Auto Vision asks another image-capable model on the same provider to read each image, then sends the original request with that description in place of the image.
A DSH plugin. No API keys are stored in or sent by the plugin itself — it uses the credential your provider config already points at.
llm/stream: if a request carries image blocks and the selected route is text-only, each image is read by a vision model on the same provider and replaced with a text block [Image #n interpreted by <model>] … [/Image #n].image block, the main route does not declare image, and a vision target resolves on the same provider. Otherwise it passes through untouched./models list. The next group is tried only when the previous one is unavailable or has failed.after <failed model> failed. A system notice asks the main model to tell the user which model failed and which one was used./models list, keeps name-matched candidates, and tries them over the direct endpoint. The official list has no modality metadata, so these candidates are not guaranteed to accept images./chat/completions endpoint. This requires baseURL and a usable apiKeyEnv in the provider config.[Image #n could not be interpreted by any vision model: …] and still asks the main model to report it; the turn continues, and one failed image does not stop the others in the same message.input: [text, image] back to the provider's llm-pi-ai config for future direct routing. It never probes models the user has not used, and a failed or cancelled request writes nothing.dsh plugin add github:thanderming/dsh-auto-vision
Or install it from the plugin marketplace.
The same code is published to npm as dsh-auto-sight (npm i dsh-auto-sight). The npm build is prebuilt — no install-time build step or allowBuilds prompt — and its download count is visible on the package page.
Settings → Auto Vision: pick the vision model (grouped per provider), or leave it on Automatic. The selection is stored in volatile config and applies to the next image request. After selecting a vision model, you can enable Use the vision model even when the main model can see images; it has no effect while no model is selected.
| Config key | Default | Meaning |
|---|---|---|
visionProvider / visionModel |
empty = auto | Model to read images with. A selection made for another provider is ignored; the plugin discovers a target on the provider handling the request instead. |
preferVisionModel |
false |
Use the selected vision model even when the main model can see images; only applies when a vision model is selected. |
timeoutMs |
60000 |
Per-image read timeout. |
The picker has three groups:
input: [text, image]./models endpoint exposes no modality metadata, so these are name-matched guesses and are collapsed by default.Once a candidate successfully reads a real user image, the plugin writes input: [text, image] back to the provider's llm-pi-ai config, so it moves into the guaranteed group next time. This only happens after a real image request, never as a background probe; refresh the Settings page to see the change.
apiKeyEnv) of that provider's config; the key never enters the plugin's config, logs, or the browser UI.baseURL and a usable apiKeyEnv in the provider config.llm-pi-ai model config; if several Settings pages edit config concurrently, a revision conflict is possible. That attempt only logs a warning and does not retry, and it does not affect the answer.node --test test/auto-vision.test.mjs # 19 tests, no network
node test/client-render.mjs # client Settings-page smoke test
MIT
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: image、images。