b9e422ad30ffe49569f5341b20dc677420397622
dsh-plugin-model-enhancer
DeepSeek Harness (DSH) Model Settings Enhancer & Codex Selector Plugin (Compatible with DSH 0.1.5-rc.2).
✨ Features
-
Official Extension Slots Integration (Non-destructive to
ui-settings-models):- Integrates model enhancement configuration via
settings.models.footerandsettings.models.provider-card(targeted atllm-pi-ai). - Supports models.dev auto-fill matching, prefilling missing capacities, image modalities (
input: ["text", "image"]), and multi-level reasoning efforts (minimal/low/medium/high/xhigh/max). - Uses
ctx.remote.settings.mutatewith revision fence checking for safe, non-destructive configuration persistence. - Preserves official file attachment and upload pipeline (
ui-attachment&file-upload), removing obsolete custom upload endpoint routes.
- Integrates model enhancement configuration via
-
Codex-style Model & Reasoning Effort Selector:
- Injected into
conversation.input.rightseamlessly alongside the official composer. - Reuses
ctx.modelDirectories(ModelDirectoryResolver) for per-session directory resolution and selection dispatch. - Interactive sliding track for reasoning effort adjustments and grouped model picker popup.
- Injected into
-
models.dev Cache & Proxy:
- Exposes exact WebServer proxy route
/api/models-dev/modelswith in-memory caching and fallback.
- Exposes exact WebServer proxy route
-
Full Bilingual Support (i18n):
- Dynamic localization supporting Simplified Chinese (
zh) and English (en).
- Dynamic localization supporting Simplified Chinese (
🛠 Building & Development
npm run build # Bundles client code to lib/client.js and emits types
npm test # Runs Vitest unit tests
npm run typecheck # TypeScript static type check
📦 Profile Configuration
In your profile's package.json:
{
"dependencies": {
"dsh-plugin-model-enhancer": "file:../dsh-plugin-model-enhancer"
},
"dsh": {
"profile": {
"bundles": [
"@deepseek-ai/dsh-base",
"@deepseek-ai/dsh-web-app",
"dsh-plugin-model-enhancer"
]
}
}
}
📄 License
MIT
Description
DSH plugin: enhanced model settings with image input, reasoning efforts, models.dev auto-fill, paperclip upload and Codex-style slider
358 KiB
Languages
TypeScript
54.7%
JavaScript
45.3%