Repository navigation
安装一个自己开发的图片识别插件,把dsh搞崩了( 本轮运行失败Invalid schema for function 'vision_query': schema must be a JSON Schema of 'type: "object"', got 'type: null'.) #297
Replies: 6 comments 2 replies
|
补充一下完整的原因分析和修复进展。我上面那条"自己解决了"其实只是绕过了表象——重置配置之所以有效,是因为它让注册了坏 schema 的插件不再被加载;真正的根因另有其处,而且这是个值得 Harness 本身加固的产品缺陷。 根因(两层)
修复
PR 状态Harness 的修复分支已推送到 fork( master...wangyang10:fix/validate-tool-parameters-root 插件侧 PR:wangyang10/image-vision#1 |
|
我也写了一个git@github.com:sala003/dsh-tool-describe-image.git,我是接的百炼视觉模型然后转文字的,你的方案是如何进行识别的呢 |
|
巧乐滋,我也遇到一样的情况 |
|
哈哈哈,我也给dsh写崩了,也是由于原始dk模型不能识图,我准备做一个插件,结果重启直接启动失败。 |
|
如果目标只是让 DeepSeek 在 DSH 里识图,现在不需要再手写 dsh plugin --profile web add pi2dsh@0.10.0
dsh plugin --profile web add @kassing/pi-vision
export VISION_BRIDGE_BASE_URL=https://openrouter.ai/api/v1
export VISION_BRIDGE_MODEL=qwen/qwen2.5-vl-72b-instruct
export VISION_BRIDGE_API_KEY=$OPENROUTER_API_KEY重启后在模型选择器选 DeepSeek + Vision Bridge,粘贴图片即可:视觉模型读像素,分析结果作为原生 context injection 交给 DeepSeek,图片块不会进入文本 adapter。 如果更喜欢显式工具调用,也可以把第二个包换成 |

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
在测试安装一个自己写的图片识别插件(https://github.com/wangyang10/image-vision)的时候,Agent应该是把~/.dsh/profiles/web/cordis.patch.yml 改出了问题,然后就整个不能工作了,报错如下:
本轮运行失败Invalid schema for function 'vision_query': schema must be a JSON Schema of 'type: "object"', got 'type: null'.
All reactions