fix: adapt model enhancements for DSH 0.1.5

This commit is contained in:
2026-09-11 21:45:40 +08:00
parent b9e422ad30
commit 77304500b1
19 changed files with 1583 additions and 1525 deletions
+6 -10
View File
@@ -1,6 +1,6 @@
# dsh-plugin-model-enhancer
# dsh-plugin-model-enhancer (adapted for DSH 0.1.5-rc.2)
DeepSeek Harness (DSH) Model Settings Enhancer & Codex Selector Plugin (Compatible with DSH 0.1.5-rc.2).
DeepSeek Harness (DSH) Model Settings Enhancer Plugin (Adapted for DSH 0.1.5-rc.2).
## ✨ Features
@@ -8,17 +8,13 @@ DeepSeek Harness (DSH) Model Settings Enhancer & Codex Selector Plugin (Compatib
- Integrates model enhancement configuration via `settings.models.footer` and `settings.models.provider-card` (targeted at `llm-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.mutate` with 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.
- Preserves official file attachment and upload pipeline (`ui-attachment` & `file-upload`).
- Delegates session-level model and reasoning selection completely to official DSH 0.1.5-rc.2 core components.
2. **Codex-style Model & Reasoning Effort Selector**:
- Injected into `conversation.input.right` seamlessly 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.
3. **models.dev Cache & Proxy**:
2. **models.dev Cache & Proxy**:
- Exposes exact WebServer proxy route `/api/models-dev/models` with in-memory caching and fallback.
4. **Full Bilingual Support (i18n)**:
3. **Full Bilingual Support (i18n)**:
- Dynamic localization supporting Simplified Chinese (`zh`) and English (`en`).
## 🛠 Building & Development