dshbase

插件目录 / Developer / dsh-plugin-custom-provider-enhancer

dsh-plugin-custom-provider-enhancer

未验证 cinob

✓ 持续维护 基于 3 个官方 DSH 包

查看 GitHub ↗ ← 返回插件目录

1Stars
0Forks
0未关闭 issue
语言
2026-08-15最近推送
跨平台平台

功能简介

⚡ DeepSeek Harness 自定义模型增强插件:在配置第三方提供商时,自动从权威模型库补齐上下文大小、Token 上限、视觉多模态输入与思考强度档位。

我们的评价
未验证 — 尚未实测

⚡ DeepSeek Harness 自定义模型增强插件:在配置第三方提供商时,自动从权威模型库补齐上下文大小、Token 上限、视觉多模态输入与思考强度档位。 尚未验证——请自行安装测试。

「未验证」表示我们的自动化 CI 尚未安装过该插件。功能描述与版本兼容性均为作者声明。这不是安全审计,也不代表对第三方代码的背书。

你是插件作者? 想拿到「已验证」标签——提交你自己的验证证据(截图、日志或短视频),我们审核通过后即改为「已验证」。

提交验证证据 ↗

README

DSH Custom Provider Enhancer

DSH Plugin
Cordis 3.x
License: MIT
Node.js
Verified Tests

English | 简体中文

DSH Custom Provider Enhancer is an out-of-the-box DeepSeek Harness (DSH) / Cordis plugin designed for Custom Model Providers (e.g. OneAPI, NewAPI, OpenRouter, vLLM, Ollama, and OpenAI-compatible API gateways).

When discovering or saving models in the Web GUI, it automatically queries a 3000+ model database to populate Context Window (contextWindow), Max Output Tokens (maxTokens), Multimodal Vision (input: [text, image]), and Deep Thinking / Reasoning (reasoningEfforts).


📋 Table of Contents


🎯 Overview

What problem does it solve?

When users connect custom third-party gateways (e.g. OneAPI, NewAPI, vLLM, Ollama) to DeepSeek Harness, the standard GET /models discovery endpoint only returns raw model IDs (such as gemini-3.7-flash, deepseek-v4-pro, or mimo-v2.5). It omits critical runtime parameters:

  • ❌ Missing context limits causes inaccurate token pressure metering or context overflows.
  • ❌ Missing multimodal flags (input: ['text', 'image']) disables image uploads in the conversation interface.
  • ❌ Missing reasoning levels (reasoningEfforts) hides the thinking intensity slider in chat.

How does this plugin solve it?

  1. Auto Discovery & Specification Enrichment: Intercepts llm.discoverModels and automatically fills correct context size and max output tokens.
  2. Vision & Thinking Auto-Injection: Intercepts llm.resolveModelInfo and settings.mutate to automatically attach vision input and thinking levels both in runtime and in settings.yaml (~/.dsh/settings.yaml).
  3. Zero Official Interference: Only affects custom third-party providers; native DeepSeek channels remain untouched.

🧭 Compatibility

Environment Supported Versions Status
DeepSeek Harness (DSH) 0.1.0-rc.1 ~ mainline ✅ Verified (Runtime Compatible)
Cordis Framework ^3.0.0 ✅ Verified
Node.js `^20.0.0
OS Linux, macOS, Windows ✅ Cross-Platform

✨ Key Features

  • Zero-Config Automation: Works right out of the box when adding custom providers in Web Settings.
  • 📏 Accurate Capacities: Automatic 1M context for Gemini 3.7 Flash, 1000K for DeepSeek V4 Pro, 128K for GPT-4o, 256K for MiMo 2.5, etc.
  • 👁️ Automatic Vision Activation: Unlocks image uploads and visual reasoning in Web chat for multimodal models (Gemini, Claude, GPT-4o, MiMo, Qwen-VL, etc.).
  • 🧠 Thinking Intensity Tiers: Injects reasoning effort gears (off, low, medium, high, max) for reasoning models.
  • 💾 Dual-Layer Persistence: Automatically writes clean parameters into settings.yaml on save, and patches legacy placeholder models in memory.
  • 🛡️ Fault-Tolerant & Offline Fallback: Built-in 30+ core model definitions, local caching, timeout circuit-breaking, and fuzzy matching for dated model snapshots (-20241120).

Install

As a standard DSH Profile Bundle, installation is one simple command:

dsh plugin --profile web add github:cinob/dsh-plugin-custom-provider-enhancer

Note: As a Profile Bundle, the plugin automatically mounts and activates. There is no need to manually insert custom-provider-enhancer in profiles/web/cordis.patch.yml.

Uninstallation

dsh plugin --profile web remove dsh-plugin-custom-provider-enhancer

⚙️ Configuration

Optional configuration in $DSH_HOME/profiles/web/cordis.patch.yml:

- id: custom-provider-enhancer
  config:
    # Remote LiteLLM metadata catalog URL
    metadataUrl: https://raw.githubusercontent.com/BerriAI/litellm/main/model_prices_and_context_window.json
    # Remote OpenRouter official model metadata URL
    openrouterMetadataUrl: https://openrouter.ai/api/v1/models
    # Request timeout in milliseconds (default: 6000ms)
    timeoutMs: 6000
    # In-memory cache TTL in milliseconds (default: 1 hour)
    cacheTtlMs: 3600000
    # Fallback context window when model is unknown (default: 128000)
    defaultContextWindow: 128000
    # Fallback max output tokens (default: 4096)
    defaultMaxTokens: 4096

⚡ Quick Start

  1. Start DSH Web GUI (dsh web).
  2. Go to Settings ➔ Models ➔ Add Provider.
  3. Fill in your Base URL and API Key, then click Fetch available models.
  4. Check desired models and click Adopt, then click Save.
  5. All specifications (contextWindow, maxTokens, input, reasoningEfforts) are automatically configured and saved!

🔒 Permissions & Data Security

  • Network Access: Only requests the user-specified custom endpoint GET /models and public model specification database (github.com/BerriAI/litellm).
  • Zero Credential Leaks: API Keys are passed through standard authorization headers only during user-initiated discovery; keys are never logged, forwarded, or stored by this plugin.
  • Local Sandbox Safe: Strictly operates in-process through Cordis service hooks (ctx.llm, ctx.settings); creates no subprocesses or arbitrary file modifications.

🛠️ Troubleshooting & Rollback

  • Changes not reflecting:
    Ensure you click Save in Web Settings. If models were added prior to installing the plugin, opening Settings and clicking Save will auto-enrich them.
  • Rollback:
    Run dsh plugin --profile web remove dsh-plugin-custom-provider-enhancer.

💻 Development & Testing

# Clone repository
git clone https://github.com/cinob/dsh-plugin-custom-provider-enhancer.git
cd dsh-plugin-custom-provider-enhancer

# Install dependencies
pnpm install

# Run automated tests
pnpm test

# Build distribution bundle
pnpm build

📄 License

MIT License

安装

🧩 让 Agent 自动装(推荐)

装一次目录插件,之后本站所有插件都能让 DeepSeek Harness 自动找、自动装:

dsh plugin add dshbase-catalog

然后对 agent 说「帮我装 dsh-plugin-custom-provider-enhancer」,它会在目录里找到并自动安装。文档:dshbase-catalog · 已验证场景包

该插件是 GitHub 源码(未发 npm)——直接从仓库装:

Web profile:

dsh plugin --profile web add github:cinob/dsh-plugin-custom-provider-enhancer

Headless(CLI)profile:

dsh plugin --profile headless add github:cinob/dsh-plugin-custom-provider-enhancer

实测报告

尚未 L3 验证——若已跑过,见下方失败备注。

状态:pending · 最近测试 2026-08-27
备注:验证: runtime-fail 浏览全部待验证失败 →
安全:尚未扫描——我们的每日静态扫描将很快覆盖它。

分享徽章

Developer 里更多

浏览全部 7795 个插件 →