cesaryike/dsh-image-to-path ↗★ 1
dsh-image-to-path
Let DSH text-only-model conversations accept dragged/pasted images: save them into the session workspace and insert the file path as text, bypassing the webui attachment channel that otherwise rejects image parts.
AI 分析
核心用途是允许纯文本模型通过拖拽或粘贴图片,自动将图片存入工作区并转换为路径文本发送。适合使用不支持多模态的纯文本模型但需要处理图片路径的用户。
インストール
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:cesaryike/dsh-image-to-pathドキュメント
README 全文を読む ↗使用
拖入或粘贴图片即可:图片保存到工作区的 dsh-image-to-path-uploads/ 目录,输入框出现文件名芯片,发送时模型收到完整路径。该目录可随时手动清理,不影响插件。
配置
| 字段 | 默认 | 说明 |
|---|---|---|
subdir | dsh-image-to-path-uploads | 保存子目录 |
maxImageBytes | 10485760 | 单图上限(10 MiB) |
interceptUnknownModels | false | 未声明能力的模型是否按纯文本拦截(内置适配器均声明,一般无需改动)。注意:即使开启,provider 未注册或能力查询失败时仍按放行处理(fail-open),并在宿主日志记录警告 |
按行 id image-to-path 在 profile 的 cordis.patch.yml 中覆盖。