Introduction

The pluggable architecture of DSH allows for supplementing interactive capabilities at the host layer. For a pure text model deployment of DeepSeek Harness, a common limitation is that users want to upload images and let the model understand the content, but the model itself only processes text.

dsh-dseyes solves this problem: it allows images to enter the Web GUI session as attachments. Before sending them to DeepSeek, the host side calls the Zhipu GLM free vision model to generate an image description, which is then handed over to the text model.

What is this

dsh-dseyes is a DSH plugin maintained by Okkay712 with an MIT license.

Its basic workflow is:

  1. User pastes or drags an image into the Web GUI chat box.
  2. The image is displayed as a thumbnail attachment, while the original image is retained in the chat history.
  3. The host side automatically calls the Zhipu GLM vision model to recognize the image before invoking DeepSeek.
  4. The image content block is replaced by a text description, and DeepSeek answers based on that description.

Core Features

Image Attachment Experience

  • Support pasting or dragging images into the Web GUI chat box.
  • Display images as thumbnail attachments.
  • Retain original images in chat history and allow clicking to enlarge.

Host-side Image Reading

  • Before sending to DeepSeek, the host side automatically calls the Zhipu GLM free vision model to recognize image content.
  • Support automatic fallback chain:
glm-4v-flash → glm-4.6v-flash → glm-4.1v-thinking-flash
  • Reuse recognition results when the same image appears multiple times.

Text Model Answers Based on Description

  • Replace image content blocks with text descriptions generated by GLM.
  • DeepSeek answers based on the description.
  • Original images are still retained in the session.

Key Configuration and Self-Check

  • Support GLM_API_KEY / ZHIPU_API_KEY.
  • Configurable via process environment variables or secrets files.
  • Windows-compatible registry reading.
  • Provides a self-check interface:
GET /dsh-dseyes/diag
  • Falls back to explanatory text if reading fails, without interrupting the conversation.

Installation and Enablement

Prerequisites

Need:

Node >= 22

Need a Zhipu GLM API key. Information indicates glm-4v-flash is free; register to use.

Configure Key

Can use process environment variables:

GLM_API_KEY=your-key

Can also write to a secrets file:

~/.dsh/secrets/media-tools.env

File content:

GLM_API_KEY=your-key

ZHIPU_API_KEY is equivalent to GLM_API_KEY.

Install Plugin

Execute:

dsh plugin --profile web add dsh-dseyes

Restart DSH Web GUI after installation.

Typical Usage

  1. Paste (Ctrl+V) or drag an image into the chat input box.

  2. Type a question and send it.

  3. View DeepSeek’s answer; original images are retained in chat history and can be clicked to enlarge.

Self-Check and Troubleshooting

Open the diagnostic address in the local browser:

http://127.0.0.1:<dsh-port>/dsh-dseyes/diag

This interface is used for self-checking keys and connectivity with Zhipu.

If reading fails, the conversation will not be interrupted, and explanatory text will be included in the model message.

Applicable Scenarios and Notes

Suitable for scenarios in DSH Web GUI where a text model needs to understand image content.

Notes before use:

  • Plugin runs with the current DSH process permissions; check source code and license before installing.
  • License is MIT.
  • Requires Node >= 22.
  • Requires a Zhipu GLM API key; information indicates glm-4v-flash is free, register to use.
  • GLM API key is stored locally in environment variables/secrets files and held by the host.
  • Information indicates the key is never written to this repository or sent to the browser.
  • Images are only sent to the Zhipu official API open.bigmodel.cn for content recognition:
open.bigmodel.cn
  • Reading results are only used in model requests; no third-party uploads.
  • Optional peerDependencies include:
@deepseek-ai/cordis
@deepseek-ai/dsh-host-webserver
@deepseek-ai/dsh-llm
@deepseek-ai/dsh-attachment
  • DSH’s plugin ecosystem emphasizes “everything is a plugin”; the community directory is an independent site and does not imply official affiliation with DeepSeek or BigModel.

Links

GitHub:

https://github.com/Okkay712/DSH-dseyes

Directory page link (unverified locally):

https://www.skillhub.cn/plugins/Okkay712/DSH-dseyes