@mengruo/dsh-vision-toolkit 0.1.4 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -70
- package/README.zh.md +11 -69
- package/lib/client.js +107 -6
- package/lib/client.js.map +1 -1
- package/lib/config.js +35 -0
- package/lib/config.js.map +1 -1
- package/lib/object-storage.js +141 -0
- package/lib/object-storage.js.map +1 -0
- package/lib/runtime.js +139 -26
- package/lib/runtime.js.map +1 -1
- package/lib/types/client/index.d.ts +39 -1
- package/lib/types/client/index.d.ts.map +1 -1
- package/lib/types/config.d.ts +33 -0
- package/lib/types/config.d.ts.map +1 -1
- package/lib/types/object-storage.d.ts +54 -0
- package/lib/types/object-storage.d.ts.map +1 -0
- package/lib/types/runtime.d.ts +12 -0
- package/lib/types/runtime.d.ts.map +1 -1
- package/lib/types/upstream.d.ts +1 -0
- package/lib/types/upstream.d.ts.map +1 -1
- package/lib/types/web.d.ts +7 -0
- package/lib/types/web.d.ts.map +1 -1
- package/lib/upstream.js +3 -0
- package/lib/upstream.js.map +1 -1
- package/lib/web.js +35 -6
- package/lib/web.js.map +1 -1
- package/package.json +3 -1
- package/src/client/index.tsx +151 -6
- package/src/config.ts +67 -0
- package/src/object-storage.ts +174 -0
- package/src/runtime.ts +136 -25
- package/src/upstream.ts +4 -0
- package/src/web.ts +45 -7
- package/vendor/agent-vision-toolkit/UPSTREAM_MANIFEST.json +11 -11
- package/vendor/agent-vision-toolkit/__pycache__/detect.cpython-314.pyc +0 -0
- package/vendor/agent-vision-toolkit/__pycache__/ground.cpython-314.pyc +0 -0
- package/vendor/agent-vision-toolkit/__pycache__/vision_client.cpython-314.pyc +0 -0
- package/vendor/agent-vision-toolkit/bin/__pycache__/glancecpython-314.pyc +0 -0
- package/vendor/agent-vision-toolkit/bin/glance +8 -1
- package/vendor/agent-vision-toolkit/detect.py +13 -7
- package/vendor/agent-vision-toolkit/ground.py +43 -18
- package/vendor/agent-vision-toolkit/tests/test_vision_client.py +88 -0
- package/vendor/agent-vision-toolkit/vision_client.py +84 -6
- package/assets/community-group-qr.png +0 -0
- package/assets/logo_aihubmix.png +0 -0
- package/assets/logo_eapi_dark.png +0 -0
- package/assets/wechat-reward.png +0 -0
package/README.md
CHANGED
|
@@ -6,12 +6,6 @@
|
|
|
6
6
|
|
|
7
7
|
# DSH Vision Toolkit
|
|
8
8
|
|
|
9
|
-
<a href="https://trendshift.io/repositories/149708?utm_source=trendshift-badge&utm_medium=badge&utm_campaign=badge-trendshift-149708" target="_blank" rel="noopener noreferrer"><img src="https://trendshift.io/api/badge/trendshift/repositories/149708/daily?language=TypeScript" alt="Anionex%2Fdsh-vision-toolkit | Trendshift" width="250" height="55"/></a>
|
|
10
|
-
|
|
11
|
-
[](https://dshfind.com/en/plugins/Anionex/dsh-vision-toolkit)
|
|
12
|
-
[](https://dshfind.com/en/plugins/Anionex/dsh-vision-toolkit)
|
|
13
|
-
[](https://www.theagenticleaderboard.com)
|
|
14
|
-
|
|
15
9
|
[](https://www.npmjs.com/package/@mengruo/dsh-vision-toolkit)
|
|
16
10
|
[](LICENSE)
|
|
17
11
|
[](cordis.patch.yml)
|
|
@@ -20,28 +14,23 @@
|
|
|
20
14
|
|
|
21
15
|
🚀 Paste an image and ask directly | Install with one command | Broad use cases
|
|
22
16
|
|
|
23
|
-
[Highlights](#highlights) | [Quick start](#quick-start-three-steps) | [Toolbox](#toolbox) | [Configuration and limits](#configuration-and-limits) | [Troubleshooting](#troubleshooting) | [
|
|
17
|
+
[Highlights](#highlights) | [Quick start](#quick-start-three-steps) | [Toolbox](#toolbox) | [Configuration and limits](#configuration-and-limits) | [Troubleshooting](#troubleshooting) | [Development](#development)
|
|
24
18
|
|
|
25
19
|
🌐 **English** | [中文](README.zh.md)
|
|
26
20
|
|
|
27
21
|
</div>
|
|
28
22
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
> **Original work:** The system and division of responsibilities behind these visual tools, together with the `vision-skills` Skill, were personally created and continuously refined by the author through long-term real-world use and repeated iteration.
|
|
32
|
-
|
|
33
|
-
> If this project helps you or gives you some inspiration, feel free to star 🌟 & fork.
|
|
23
|
+
> **Upstream:** [Anionex/dsh-vision-toolkit](https://github.com/Anionex/dsh-vision-toolkit) — this is a fork of that project.
|
|
34
24
|
|
|
35
25
|
## Highlights
|
|
36
26
|
|
|
37
27
|
- **Paste an image and ask directly.** In DSH Web, pasting an image switches the text-only model to its `(Vision Toolkit)` variant automatically — no manual path copying or model changes. Native thumbnails, session history, and workspace paths stay intact; Web can preview artifacts.
|
|
38
28
|
- **One command to install.** After installation, configure a vision provider in **Settings → Vision Toolkit** and start using the tools.
|
|
39
29
|
- **Not just a caption — the content that matters.** The model does not produce a generic description; it extracts evidence around the current task, such as “Where is the error?” or “Where is the button?”.
|
|
30
|
+
- **More than one provider, with fallback.** Configure multiple vision providers; routes, streaming, and automatic fallback are handled by policy for better availability and stability.
|
|
40
31
|
- **A battle-tested visual-task methodology.** The bundled Skill tells the agent what to look at for different visual tasks, which tool to choose, how to proceed, and how to verify the result.
|
|
41
32
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
This project has two layers:
|
|
33
|
+
This project brings a visual-task working method into DeepSeek Harness. It has two layers:
|
|
45
34
|
|
|
46
35
|
1. **Visual tools and a Skill:** the agent learns when to inspect, ground, OCR, crop, trace, or compare pixels.
|
|
47
36
|
2. **Native DSH integration:** those capabilities live inside Profiles, sessions, Settings, Artifacts, and the Web UI.
|
|
@@ -50,50 +39,16 @@ This project has two layers:
|
|
|
50
39
|
dsh plugin --profile web add @mengruo/dsh-vision-toolkit
|
|
51
40
|
```
|
|
52
41
|
|
|
53
|
-
**Upstream toolkit:** [Anionex/agent-vision-toolkit](https://github.com/Anionex/agent-vision-toolkit) · **Project website:** [agent-vision.anionex.me](https://agent-vision.anionex.me)
|
|
54
|
-
|
|
55
|
-
## ❤️ Sponsor
|
|
56
|
-
|
|
57
|
-
> Want to sponsor this project? See [FUNDING.md](FUNDING.md) or email davidyang042@gmail.com.
|
|
58
|
-
|
|
59
|
-
<details open>
|
|
60
|
-
<summary>Click to collapse</summary>
|
|
61
|
-
|
|
62
|
-
<table>
|
|
63
|
-
<tr>
|
|
64
|
-
<td width="220" align="center" valign="middle"><a href="https://aihubmix.com/?aff=sinZ"><img src="assets/logo_aihubmix.png" alt="AIHubMix" height="48"></a></td>
|
|
65
|
-
<td valign="middle">Thanks to <a href="https://aihubmix.com/?aff=sinZ">AIHubMix</a> for sponsoring this project! AIHubMix is a stable, high-concurrency AI model API gateway that connects Claude, GPT, Gemini, DeepSeek, and other mainstream models through a single API key, compatible with multiple protocols, with <b>free model options</b> available. To sign up, use the <a href="https://aihubmix.com/?aff=sinZ">AIHubMix entry</a> outside mainland China or the <a href="https://inferera.com/?aff=sinZ">Inferera entry</a> within mainland China.</td>
|
|
66
|
-
</tr>
|
|
67
|
-
<tr>
|
|
68
|
-
<td width="220" align="center" valign="middle"><a href="https://api.ewo.so/register?aff=U6PT7J"><img src="assets/logo_eapi_dark.png" alt="E-API" height="48"></a></td>
|
|
69
|
-
<td valign="middle">Thanks to <a href="https://api.ewo.so/register?aff=U6PT7J">E-API</a> for sponsoring this project! E-API aggregates mainstream AI models behind OpenAI-, Anthropic-, and Codex-compatible APIs, with selected Claude models up to <b>98% below official prices</b> and DeepSeek V4 models about <b>25% below official prices</b>.</td>
|
|
70
|
-
</tr>
|
|
71
|
-
</table>
|
|
72
|
-
|
|
73
|
-
</details>
|
|
74
|
-
|
|
75
42
|
**Contents**
|
|
76
43
|
|
|
77
44
|
- [Highlights](#highlights)
|
|
78
|
-
- [Recent updates](#recent-updates)
|
|
79
45
|
- [Who it is for](#who-it-is-for)
|
|
80
46
|
- [See it in action](#see-it-in-action)
|
|
81
47
|
- [Quick start: three steps](#quick-start-three-steps)
|
|
82
48
|
- [Toolbox](#toolbox)
|
|
83
49
|
- [Configuration and limits](#configuration-and-limits)
|
|
84
50
|
- [Troubleshooting](#troubleshooting)
|
|
85
|
-
- [
|
|
86
|
-
- [Development and community](#development-and-community)
|
|
87
|
-
|
|
88
|
-
## Recent updates
|
|
89
|
-
|
|
90
|
-
- **2026-08-20 · AIHubMix setup guide:** Added a screenshot-based guide for getting an API key through the Inferera entry and configuring the Gemini 3.7 Flash vision model; Settings now links directly to this guide.
|
|
91
|
-
- **2026-08-19 · Transparent routing by default:** The model selector keeps one entry per model with the original name, and image input (paste, history, `read_image`) works without manually switching to a `(Vision Toolkit)` variant. Disable “Transparent variant routing” in advanced settings → image input to restore the explicit entries.
|
|
92
|
-
- **2026-08-16 · Windows Python:** Added Microsoft Store Python support, fixing first-time isolated-runtime setup failures for affected Windows users.
|
|
93
|
-
- **2026-08-17 · Vision upgrade:** Switched the default model to Gemini 3.7 Flash and fixed Qwen/Gemini bounding-box coordinate order.
|
|
94
|
-
- **2026-08-16 · Image paste:** Text-only routes now switch to a `(Vision Toolkit)` variant and keep a workspace path, fixing blocked pastes and images that could not be reused later.
|
|
95
|
-
- **2026-08-16 · Service stability:** Expanded service capacity to reduce peak-time `429` responses.
|
|
96
|
-
- **2026-08-16 · Real model test:** Added a full image-request test in Settings, fixing the false confidence caused by a successful `/models` request to a model that still cannot process images.
|
|
51
|
+
- [Development](#development)
|
|
97
52
|
|
|
98
53
|
## Who it is for
|
|
99
54
|
|
|
@@ -276,6 +231,8 @@ You can also configure a Profile patch:
|
|
|
276
231
|
|
|
277
232
|
OpenAI Chat Completions-compatible endpoints and Anthropic Messages are supported. The Web Settings panel exposes the full provider, runtime, timeout, image-limit, and image-input-variant configuration.
|
|
278
233
|
|
|
234
|
+
Requests are non-streaming by default. For endpoints with weak non-streaming support or that time out on long outputs, set `stream: true` on an individual provider (or enable the "Streaming" toggle in Web Settings) to request the completion over SSE. Streamed responses are accumulated into the full text inside the Python client before returning, so the tool interface and result shape are unchanged.
|
|
235
|
+
|
|
279
236
|
The advanced **Default save directory** setting can place artifacts, pasted images, and caches below an absolute POSIX shared root such as `/tmp/dsh-vision-toolkit`; the plugin creates a private mode-0700 child for the current user and workspace. Leaving it blank keeps the existing workspace-local `.dsh-vision-toolkit` directory. Configured shared roots are currently rejected on Windows because their ownership and access-control lists cannot yet be verified safely.
|
|
280
237
|
|
|
281
238
|
When the configured save directory changes, the plugin retains earlier validated roots as read-only input locations. Web Profiles persist that history in the plugin-owned `vision_toolkit_storage` storage-domain sidecar, including when the active Settings provider is read-only, so existing pasted-image paths remain usable after a Profile restart. Custom Profiles should compose `@deepseek-ai/dsh-storage-domain` when they use configured shared storage.
|
|
@@ -308,27 +265,11 @@ For advanced setups — overriding `runtime.python`, using `runtime.mode: extern
|
|
|
308
265
|
|
|
309
266
|
No. Each inspection sends only the necessary intent and the image to the multimodal model, and context does not accumulate across calls, so the added cost stays small. To reduce it further, a locally deployed small multimodal side model (for example the Gemma 4 or Qwen 3.5/3.6 series) can provide the vision capability.
|
|
310
267
|
|
|
311
|
-
##
|
|
312
|
-
|
|
313
|
-
If this project is valuable to you, you are welcome to buy the developer a coffee ☕️
|
|
314
|
-
|
|
315
|
-
<img width="240" alt="WeChat reward code" src="assets/wechat-reward.png" />
|
|
316
|
-
|
|
317
|
-
## Development and community
|
|
318
|
-
|
|
319
|
-
- Read [CONTRIBUTING.md](CONTRIBUTING.md) before contributing.
|
|
320
|
-
- Use [GitHub Issues](https://github.com/mengruoa/dsh-vision-toolkit/issues) for bugs, focused feature requests, and usage questions; see [SUPPORT.md](SUPPORT.md) for channel guidance.
|
|
321
|
-
- Report vulnerabilities privately through [SECURITY.md](SECURITY.md).
|
|
322
|
-
- See [CHANGELOG.md](CHANGELOG.md) for releases and [FUNDING.md](FUNDING.md) for sponsorship details.
|
|
323
|
-
- Visit upstream [agent-vision-toolkit](https://github.com/Anionex/agent-vision-toolkit) for the general toolkit, cross-agent integrations, and visual-task playbooks.
|
|
324
|
-
|
|
325
|
-
<p align="center">
|
|
326
|
-
<img src="assets/community-group-qr.png" alt="QR code for the agent-vision-toolkit community group" width="240" />
|
|
327
|
-
</p>
|
|
328
|
-
|
|
329
|
-
I'm [anionex](https://anionex.me/), an AI-native developer who once ranked **No. 3** on GitHub's global developer trending list, with more than 16k stars across my projects. If you would like to follow my future work, [follow me on GitHub](https://github.com/Anionex).
|
|
268
|
+
## Development
|
|
330
269
|
|
|
331
|
-
[
|
|
270
|
+
- Use [GitHub Issues](https://github.com/mengruoa/dsh-vision-toolkit/issues) for bugs, focused feature requests, and usage questions.
|
|
271
|
+
- See [CHANGELOG.md](CHANGELOG.md) for release history.
|
|
272
|
+
- This is a fork of [Anionex/dsh-vision-toolkit](https://github.com/Anionex/dsh-vision-toolkit); when relevant, changes can be contributed back upstream.
|
|
332
273
|
|
|
333
274
|
## License
|
|
334
275
|
|
package/README.zh.md
CHANGED
|
@@ -6,12 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
# DSH Vision Toolkit
|
|
8
8
|
|
|
9
|
-
<a href="https://trendshift.io/repositories/149708?utm_source=trendshift-badge&utm_medium=badge&utm_campaign=badge-trendshift-149708" target="_blank" rel="noopener noreferrer"><img src="https://trendshift.io/api/badge/trendshift/repositories/149708/daily?language=TypeScript" alt="Anionex%2Fdsh-vision-toolkit | Trendshift" width="250" height="55"/></a>
|
|
10
|
-
|
|
11
|
-
[](https://dshfind.com/zh/plugins/Anionex/dsh-vision-toolkit)
|
|
12
|
-
[](https://dshfind.com/zh/plugins/Anionex/dsh-vision-toolkit)
|
|
13
9
|
[](https://www.npmjs.com/package/@mengruo/dsh-vision-toolkit)
|
|
14
|
-
|
|
15
10
|
[](LICENSE)
|
|
16
11
|
[](cordis.patch.yml)
|
|
17
12
|
|
|
@@ -19,28 +14,23 @@
|
|
|
19
14
|
|
|
20
15
|
🚀 粘贴图片,直接提问 | 一行命令安装即用 | 场景丰富
|
|
21
16
|
|
|
22
|
-
[亮点](#亮点) | [快速开始](#快速开始三步完成) | [工具一览](#工具一览) | [配置与限制](#配置与限制) | [常见问题](#常见问题) | [
|
|
17
|
+
[亮点](#亮点) | [快速开始](#快速开始三步完成) | [工具一览](#工具一览) | [配置与限制](#配置与限制) | [常见问题](#常见问题) | [开发](#开发)
|
|
23
18
|
|
|
24
19
|
🌐 [English](README.md) | **中文**
|
|
25
20
|
|
|
26
21
|
</div>
|
|
27
22
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
> **原创声明:** 这套视觉工具的体系和划分方式,以及 `vision-skills` Skill,均由作者个人原创并持续打磨,相关工具、方法和工作流来自长期的真实使用与反复迭代。
|
|
31
|
-
|
|
32
|
-
> 如果这个项目对你有帮助,或给了你一些灵感,欢迎 Star 🌟 & Fork。
|
|
23
|
+
> **上游:** [Anionex/dsh-vision-toolkit](https://github.com/Anionex/dsh-vision-toolkit) —— 本仓库是该项目的 fork。
|
|
33
24
|
|
|
34
25
|
## 亮点
|
|
35
26
|
|
|
36
27
|
- **粘贴图片,直接提问。** 在 DSH Web 里粘贴图片,文本模型会自动切换到看图模式变体,不需要手动复制路径或更换模型。图片保留原生缩略图、会话记录和工作区路径;Web 可以预览产物。
|
|
37
28
|
- **一行命令安装即用。** 安装插件后即可在 **设置 → 视觉工具** 中配置视觉模型并开始使用。
|
|
38
29
|
- **不只是看图描述,是获取图中真正需要关注的内容。** 模型不只是生成通用描述,而是围绕“报错在哪里”“按钮在哪”等当前任务提取证据。
|
|
30
|
+
- **多提供商 + 自动回退。** 可配置多个视觉提供商,路由、流式请求与自动回退均由策略处理,提升可用性与稳定性。
|
|
39
31
|
- **一套经过实战验证的视觉任务方法论**:项目提供的skill,会告诉 agent 面对不同视觉任务时应该看什么、选择哪个工具、按什么步骤推进,以及最后如何验证结果。
|
|
40
32
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
本项目提供两层能力:
|
|
33
|
+
本项目把一整套视觉任务方法论带进 DeepSeek Harness,提供两层能力:
|
|
44
34
|
|
|
45
35
|
1. **视觉工具和 Skill**:让 Agent 知道什么时候该看图、定位、OCR、裁剪、描摹或做像素对比。
|
|
46
36
|
2. **DSH 原生接入**:把这些能力放进 Profile、会话、Settings、Artifacts 和 Web 界面。
|
|
@@ -49,50 +39,16 @@
|
|
|
49
39
|
dsh plugin --profile web add @mengruo/dsh-vision-toolkit
|
|
50
40
|
```
|
|
51
41
|
|
|
52
|
-
**上游工具箱:** [Anionex/agent-vision-toolkit](https://github.com/Anionex/agent-vision-toolkit) · **项目网站:** [agent-vision.anionex.me](https://agent-vision.anionex.me)
|
|
53
|
-
|
|
54
|
-
## ❤️ 赞助
|
|
55
|
-
|
|
56
|
-
> 想赞助本项目?详见 [FUNDING.md](FUNDING.md) 或发送邮件到 davidyang042@gmail.com。
|
|
57
|
-
|
|
58
|
-
<details open>
|
|
59
|
-
<summary>点击折叠</summary>
|
|
60
|
-
|
|
61
|
-
<table>
|
|
62
|
-
<tr>
|
|
63
|
-
<td width="220" align="center" valign="middle"><a href="https://aihubmix.com/?aff=sinZ"><img src="assets/logo_aihubmix.png" alt="AIHubMix" height="48"></a></td>
|
|
64
|
-
<td valign="middle">感谢 <a href="https://aihubmix.com/?aff=sinZ">AIHubMix</a> 赞助本项目!AIHubMix 是稳定、高并发的 AI 大模型 API 聚合平台,一个 API Key 即可接入 Claude、GPT、Gemini、DeepSeek 等主流模型,兼容多种协议,并提供<b>免费模型选择</b>。注册时,海外用户请使用 <a href="https://aihubmix.com/?aff=sinZ">AIHubMix 入口</a>,中国大陆用户请使用 <a href="https://inferera.com/?aff=sinZ">Inferera 入口</a>。</td>
|
|
65
|
-
</tr>
|
|
66
|
-
<tr>
|
|
67
|
-
<td width="220" align="center" valign="middle"><a href="https://api.ewo.so/register?aff=U6PT7J"><img src="assets/logo_eapi_dark.png" alt="E-API" height="48"></a></td>
|
|
68
|
-
<td valign="middle">感谢 <a href="https://api.ewo.so/register?aff=U6PT7J">E-API</a> 赞助本项目!E-API 聚合主流 AI 模型,兼容 OpenAI、Anthropic 与 Codex 接口;部分 Claude 模型相比官方价<b>最高优惠约 98%</b>,DeepSeek V4 系列<b>优惠约 25%</b>。</td>
|
|
69
|
-
</tr>
|
|
70
|
-
</table>
|
|
71
|
-
|
|
72
|
-
</details>
|
|
73
|
-
|
|
74
42
|
**目录**
|
|
75
43
|
|
|
76
44
|
- [亮点](#亮点)
|
|
77
|
-
- [最近更新](#最近更新)
|
|
78
45
|
- [适合谁用](#适合谁用)
|
|
79
46
|
- [实际效果](#实际效果)
|
|
80
47
|
- [快速开始:三步完成](#快速开始三步完成)
|
|
81
48
|
- [工具一览](#工具一览)
|
|
82
49
|
- [配置与限制](#配置与限制)
|
|
83
50
|
- [常见问题](#常见问题)
|
|
84
|
-
- [
|
|
85
|
-
- [开发与社区](#开发与社区)
|
|
86
|
-
|
|
87
|
-
## 最近更新
|
|
88
|
-
|
|
89
|
-
- **2026-08-20 · AIHubMix 申请教程:** 新增通过 Inferera 入口申请 API Key 并配置 Gemini 3.7 Flash 视觉模型的图文教程,并在视觉工具设置中直接提供入口。
|
|
90
|
-
- **2026-08-19 · 透明变体路由默认开启:** 模型选择器默认只显示每个模型一项并保留原模型名,粘贴图片、历史图片和内置 `read_image` 工具都能直接使用,不再需要手动切换到 `(Vision Toolkit)` 变体;如需恢复显式条目,可在 设置 → 高级设置 → 图片输入 关闭“透明变体路由”。
|
|
91
|
-
- **2026-08-16 · Windows Python:** 支持 Microsoft Store Python,解决 Windows 用户首次创建隔离环境失败的问题。
|
|
92
|
-
- **2026-08-17 · 视觉升级:** 默认模型切换到 Gemini 3.7 Flash,并修复 Qwen/Gemini 检测框坐标顺序错位的问题。
|
|
93
|
-
- **2026-08-16 · 图片粘贴:** 文本模型自动切换到 `(Vision Toolkit)` 变体并保留工作区路径,解决粘贴图片被拦截或后续无法复用的问题。
|
|
94
|
-
- **2026-08-16 · 服务稳定性:** 扩大服务容量,减少高峰期出现 `429` 的情况。
|
|
95
|
-
- **2026-08-16 · 真实模型测试:** Settings 新增完整图片请求测试,解决 `/models` 可访问却不能证明模型真的会看图的问题。
|
|
51
|
+
- [开发](#开发)
|
|
96
52
|
|
|
97
53
|
## 适合谁用
|
|
98
54
|
|
|
@@ -274,6 +230,8 @@ flowchart LR
|
|
|
274
230
|
|
|
275
231
|
支持 OpenAI Chat Completions 兼容端点和 Anthropic Messages。Web Settings 页面还可以调整超时、图片限制、并发、运行时和图片输入变体。
|
|
276
232
|
|
|
233
|
+
默认使用非流式请求。对非流式支持不佳、长输出容易连接超时的端点,可为单个 provider 设置 `stream: true`(或在 Web Settings 中打开「流式请求」开关)改用以 SSE 流式方式请求补全;流式响应会在 Python 客户端内聚合成完整文本后返回,工具接口与结果结构不变。
|
|
234
|
+
|
|
277
235
|
高级设置中的 **默认保存目录** 可以把产物、粘贴图片和缓存放到 `/tmp/dsh-vision-toolkit` 等 POSIX 绝对共享根目录下;插件会为当前用户和工作区创建权限为 0700 的私有子目录。留空时继续使用工作区内原有的 `.dsh-vision-toolkit` 目录。Windows 目前会拒绝配置共享根目录,因为插件尚不能安全校验其所有权和访问控制列表。
|
|
278
236
|
|
|
279
237
|
配置的保存目录变更后,插件会把之前验证过的根目录保留为只读输入位置。Web Profile 会把这段历史保存在插件自有的 `vision_toolkit_storage` storage-domain sidecar 中;即使当前 Settings 提供方只读,Profile 重启后原有粘贴图片路径仍可继续使用。使用配置共享存储的自定义 Profile 应组合 `@deepseek-ai/dsh-storage-domain`。
|
|
@@ -306,27 +264,11 @@ flowchart LR
|
|
|
306
264
|
|
|
307
265
|
不会。每次检查只把必要的意图和图片发给多模态模型,调用之间不会累积上下文,因此额外成本很小。想进一步降低成本,可以用本地部署的小型多模态侧模型(例如 Gemma 4 或 Qwen 3.5/3.6 系列)提供视觉能力。
|
|
308
266
|
|
|
309
|
-
##
|
|
310
|
-
|
|
311
|
-
如果本项目对你有价值,欢迎请开发者喝杯咖啡☕️
|
|
312
|
-
|
|
313
|
-
<img width="240" alt="微信收款码" src="assets/wechat-reward.png" />
|
|
314
|
-
|
|
315
|
-
## 开发与社区
|
|
316
|
-
|
|
317
|
-
- 贡献前请阅读 [CONTRIBUTING.md](CONTRIBUTING.md)。
|
|
318
|
-
- Bug、功能建议和使用问题请提交到 [GitHub Issues](https://github.com/mengruoa/dsh-vision-toolkit/issues);渠道说明见 [SUPPORT.md](SUPPORT.md)。
|
|
319
|
-
- 安全漏洞请按 [SECURITY.md](SECURITY.md) 私下报告。
|
|
320
|
-
- 版本变化见 [CHANGELOG.md](CHANGELOG.md),赞助说明见 [FUNDING.md](FUNDING.md)。
|
|
321
|
-
- 通用视觉工具、跨 Agent 接入和视觉任务方法论请访问上游 [agent-vision-toolkit](https://github.com/Anionex/agent-vision-toolkit)。
|
|
322
|
-
|
|
323
|
-
<p align="center">
|
|
324
|
-
<img src="assets/community-group-qr.png" alt="agent-vision-toolkit 项目交流群二维码" width="240" />
|
|
325
|
-
</p>
|
|
326
|
-
|
|
327
|
-
我是 [anionex](https://anionex.me/),一位 AI 原生开发者,曾位列 GitHub 全球开发者趋势榜第 **3** 名,项目累计超过 16k stars。想了解我后续的工作,欢迎在 [GitHub](https://github.com/Anionex) 关注我。
|
|
267
|
+
## 开发
|
|
328
268
|
|
|
329
|
-
[
|
|
269
|
+
- Bug、功能建议和使用问题请提交到 [GitHub Issues](https://github.com/mengruoa/dsh-vision-toolkit/issues)。
|
|
270
|
+
- 版本变化见 [CHANGELOG.md](CHANGELOG.md)。
|
|
271
|
+
- 本仓库是 [Anionex/dsh-vision-toolkit](https://github.com/Anionex/dsh-vision-toolkit) 的 fork;如有合适的改动欢迎回馈给上游。
|
|
330
272
|
|
|
331
273
|
## 许可证
|
|
332
274
|
|