dsh-youreyes
Eyes for text-only DeepSeek on DeepSeek Harness: image understanding via Antigravity IDE quota (default, flash/pro), OpenAI-compatible VLM endpoints, Gemini API, or local Ollama — model-invokable vision tool, wrapper adapters for deepseek/opencode-go, evidence memory, and a polished client panel.
AI 분석
核心用途是为 DSH 引入多通道视觉识图工具。适合拥有反重力订阅、Gemini API 或本地运行 Ollama 视觉模型并希望在 DSH 中识图的用户。
설치
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:54xkeee/dsh-youreyes方式零:反重力 IDE(默认通道,配置后优先)
使用 Antigravity IDE(已启动并登录)时,把它配为默认识图通道——识别走你的 IDE 订阅额度(flash/pro 双档,按模型名自动选择):
- insert:
- id: youreyes
name: dsh-youreyes
config:
antigravityWorkspace: /path/to/workspace
antigravityProjectId: your-project-id
antigravityLsExe: /path/to/language_server.exe
antigravityWindowsHome: /mnt/c/Users/you
antigravityBrainDir: /mnt/c/Users/you/.gemini/antigravity/brain
端口/CSRF 每次调用自动发现,IDE 重启也不用改配置;IDE 不可用时自动降级 Gemini → OpenAI → Ollama。
方式一:本地 Ollama(零配置,最省心)
### 方式二:Gemini API(免费额度,一行配置)
```bash
dsh plugin --profile web add dsh-youreyes
### 使用
1. **面板**:会话头部点「识图」→ 添加/粘贴图片 → 填提示词 → 选模式/档位/通道 → 识别。
2. **对话流**:模型选择器选 `DeepSeek (Vision Toolkit)`,直接粘贴图片发送——模型自动调用识图。
## 🧪 配置自检(验证你的通道真的能用)
装好后,最快验证方式——直接调 HTTP 接口(`/api/youreyes/vision`),一分钟内确认通道通不通:
```bash
## ⚙️ 完整配置
| Key | 默认 | 说明 |
|---|---|---|
| `defaultChannel` | `auto` | 面板默认通道:`auto`(反重力优先)/ `antigravity` / `openai` / `gemini` / `ollama` |
| `defaultModel` | `gemini-3.7-flash` | 面板默认模型 |
| `antigravityWorkspace` | `""` | 反重力工作区(WSL 路径) |
| `antigravityProjectId` | `""` | 反重力项目 id |
| `antigravityLsExe` | `""` | `language_server.exe` 路径 |
| `antigravityWindowsHome` | `""` | Windows 用户主目录(项目文件用) |
| `antigravityBrainDir` | `""` | 反重力 brain transcript 目录 |
| `openaiBaseUrl` | `https://open.bigmodel.cn/api/paas/v4` | OpenAI 兼容端点(自动追加 `/chat/completions`) |
| `openaiApiKey` | `""` | OpenAI 兼容端点 key(或环境变量 `YOUREYES_OPENAI_API_KEY`) |
| `openaiModel` | `glm-4.6v-flash` | OpenAI 兼容端点模型 |
| `geminiApiKey` | `""` | Gemini API key(`AIza…` / `AQ.`) |
| `geminiModel` | `gemini-3.7-flash` | Gemini 模型 |
| `autoOllama` | `true` | 启动时自动检测本地 Ollama |
| `ollamaBaseUrl` | `http://127.0.0.1:11434` | Ollama 地址 |
| `ollamaModel` | `""` | Ollama 模型(空则自动选视觉模型) |
| `winCurlPath` | `""` | WSL 降级:fetch 失败时用 Windows curl.exe 重试 |
| `maxTokens` | `2048` | 视觉模型最大输出 token |
| `timeoutMs` | `60000` | 单次请求超时 |
| `maxImageBytes` | `8MB` | 单张图片上限 |
| `maxImages` | `8` | 一次最多图片数 |
| `visionUpstreams` | `["deepseek", "opencode-go"]` | 对话流包装 provider 的上游列表(deepseek 中转 + opencode-go 的 flash/pro 全系) |
| `cacheMax` | `64` | 内存 LRU 缓存条数 |
| `allowedImageDirs` | `[]` | 非空时仅允许 `image_path` 读取这些目录 |