sfyyy/dsh-vision-bridge ↗★ 6

@dsh-extension/dsh-vision-bridge

按需视觉:图片转为标记,由 vision_describe 工具调用视觉模型 适合纯文本会话中偶尔需要看图描述的用户,需配置兼容视觉模型

包名
@dsh-extension/dsh-vision-bridge
兼容性
待验证
Harness 依赖范围
>=0.0.1-rc.1 <0.2.0
Cordis 依赖范围
>=4.0.0-rc.7 <5.0.0
版本
1.0.0
许可证
MIT
最近更新
2026年8月16日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:sfyyy/dsh-vision-bridge

Configuration

Configure it in Settings → Vision Bridge (DSH Web), or edit ~/.dsh/vision-bridge.json:

{
  "enabled": true,
  "baseUrl": "https://api.openai.com/v1",
  "apiKey": "sk-xxxx",
  "apiKeyEnv": "",
  "model": "gpt-5.6-terra"
}
  • baseUrl accepts an API root, a .../v1 base, or a full .../chat/completions URL (the plugin normalizes it).
  • apiKey and apiKeyEnv are mutually exclusive. A directly entered key is synced to the DSH credential store and referenced as DSH_VISION_BRIDGE_API_KEY.
  • The plugin maintains exactly one vision-bridge route inside DSH's llm-pi-ai.providers and never touches other providers.
  • enabled: false disables the whole chain: no tool registration, no image rewriting, no admission bypass (native behavior restored).

Precedence (highest wins): Settings page (with schema defaults) → environment variables → config file.

Environment overrides: DSH_VISION_BRIDGE_BASE_URL, DSH_VISION_BRIDGE_API_KEY, DSH_VISION_BRIDGE_API_KEY_ENV, DSH_VISION_BRIDGE_MODEL, DSH_VISION_BRIDGE_ENABLED.