加入的模型无法设置是否支持图片! #3965
Replies: 6 comments 3 replies
|
你完全可以让dsh 给你实现在输入粘贴图片,然后他会显示一个图片缩略图在输入框。接着,让dsh 实现通过派发子代理去处理用户发送的图片,注意这里的图片默认是无法发送的,就需要你让dsh 实现将用户粘贴的图片先复制到工作区的目录里,然后发送消息使用图片的路径!这样就能发整个消息给文本模型啦。模型会自动派发子代理去处理该路径的图片,然后返回处理消息给主会话!甚至,你可以在主会话中让子代理返回信息时 预览处理的图片! 这流程完全可以实现哦,并且我已经让dsh 实现啦,用起来很丝滑哦。 You can totally make DSH support pasting images directly into the input box — it'll show a thumbnail preview right there. Then, have DSH dispatch a sub-agent to handle the image the user sends. The catch is that images can't be sent directly by default, so you'll need DSH to first copy the pasted image into the workspace directory, and then send the message using the image path. That way, the whole message (including the image) can be delivered to the text model. The model will automatically dispatch a sub-agent to process the image at that path, and then return the result back to the main session. Even better, you can have the sub-agent return a preview of the processed image right in the main conversation! This workflow is totally doable — and I've already implemented it in DSH. It works really smoothly. 😄 |
|
我也觉得是幽默,接入第三方无法设置是否是视觉模型,而一刀切全部都不支持 |
|
真的很难绷,不只是输入框不行粘贴地址后模型都调用不了视觉 |
|
这个其实能设,只是不在添加模型的那个表单里,而在 settings 文件里——所以看起来像"没考虑",实际是 UI 卡片没覆盖到这个字段。
llm-pi-ai:
providers:
my-gateway:
displayName: My Gateway
api: openai-completions
baseURL: https://你的端点/v1
apiKeyEnv: MY_KEY
models:
- id: 你的视觉模型-id
name: 显示名
contextWindow: 131072
input: [text, image] # <- 就是这个
这条配置路径我完整跑过(换的是别的端点,机制一样,并且进了我自己项目的发版回归),所以字段形状是可靠的。 两个必须说清的边界:
至于"添加模型的表单里应该有这个开关"——你这个诉求我觉得成立,那是官方设置页该补的(#4044 提的是同一件事),我不替官方回答。 利益相关:我维护 pi2dsh,跟这条回复无关——上面全是 DSH 官方的 |




Uh oh!
There was an error while loading. Please reload this page.
太幽默了,DeepSeek自己不支持图片,所以在添加模型的时候就没有考虑设置支持图片的选项吗?
All reactions