dsh-vlm-bridge
DeepSeek Harness (dsh) bundle plugin: vision_analyze tool lets text-only LLM agents read images via SenseNova VLM, with Schemastery config and single-source credentials
AI 분석
核心用途是让纯文本智能体通过调用 `vision_analyze` 工具来读取和分析图片。适合需要为现有文本模型补充图像理解能力的特定任务。
설치
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:me9rez/dsh-vlm-bridge配置
单一来源:baseUrl/model 等只从 config 来(schema 默认值兜底);密钥只从 credentials 来。
| Config 字段(patch 层 config:) | 类型 | 默认值 | 说明 |
|---|---|---|---|
baseUrl | string | https://api-inference.modelscope.cn/v1 | VLM API 地址 |
model | string | Qwen/Qwen3-VL-8B-Instruct | VLM 模型名 |
cacheTtlMs | number | 600000 | 识别结果缓存时长 ms |
cacheMax | number | 64 | 缓存条目上限 |
fetchTimeoutMs | number | 120000 | VLM 请求超时 ms |
maxTokens | number | 4096 | VLM 输出 token 上限(图片详细描述易超过 1024,调大缓解截断/空内容) |
logFile | string | os.tmpdir()/dsh-vlm-plugin/dsh-vlm-bridge.log(即 %TEMP%) | 日志路径 |
凭证(~/.dsh/.credentials.yaml,密钥唯一来源):VLM_API_KEY(必需)。
注意:VLM_BASE_URL / VLM_MODEL 不再从 credentials 读取(0.1.0 单一来源化),
要改端点/模型请在 config 里配。
示例(profile 的 cordis.patch.yml,覆盖 bundle 层已有的行):