DSH Plugins Marketplace

DSH Plugins

Plugins

/

Models & Providers

/

dsh-tlpro-models

d

dsh-tlpro-models

Identified

Declares two model routes in the llm-pi-ai settings section — a TLPro gateway and Z.ai's GLM-5.3 endpoint — with per-model context windows, output caps and reasoning-effort ladders, so the stock model

dsh-tlpro-models

Khai báo gateway TLPro và catalog model của nó cho DeepSeek Harness.

Đây là một bundle patch layer — đúng cơ chế composition DSH dùng cho profile: loader áp các lớp trong dsh.profile.bundles theo thứ tự, rồi tới cordis.patch.yml của profile, ghi đè theo row id, lớp sau thắng.

Package này không có code, chỉ có cấu hình. Nó không sửa repo/checkout DSH, không patch file nào trong node_modules, không require plugin nào. Gỡ package khỏi profile là mọi route nó thêm biến mất.

Nó khai báo gì

Một route tlpro:

TrườngGiá trị
apiopenai-completions
baseURLhttps://hoantienmuasam.net/llmtlpro/v1
apiKeyEnvTLPRO_API_KEY (credential reference, không phải secret)

Catalog hiện có 3 model, khớp đúng /v1/models của gateway:

ModelContextMax outputReasoning
deepseek-v4.1-flash1,000,000393,216low / high / max
glm-5.3-flash1,000,000131,072low / high / max
glm-5.31,000,000131,072low / high / max

Cài vào một profile

Có hai cách, tuỳ bạn muốn dùng bản sao cục bộ hay kéo thẳng từ GitHub.

Từ GitHub (khuyến nghị khi dùng trên máy khác):

{
  "dependencies": {
    "dsh-tlpro-models": "github:dungcsnd1133/dsh-tlpro-models"
  },
  "dsh": {
    "profile": {
      "bundles": [
        "@deepseek-ai/dsh-base",
        "@deepseek-ai/dsh-web-app",
        "dsh-tlpro-models"
      ]
    }
  }
}

Từ thư mục cục bộ (khi đang sửa catalog):

"dependencies": { "dsh-tlpro-models": "link:/data/dsh-plugins/dsh-tlpro-models" }

Thứ tự quan trọng: bundle này phải đứng sau @deepseek-ai/dsh-base, vì dsh-base là lớp mount row llm-pi-ai; lớp sau ghi đè config của row đó.

Rồi cài dependency:

dsh plugin --profile <tên-profile> install

Kiểm tra lớp đã áp:

dsh <tên-profile> --dump-config | grep 'patched by dsh-tlpro-models'

Cập nhật catalog khi gateway thêm model

Sửa danh sách models: trong cordis.patch.yml, restart profile. Không cần publish, không cần đụng DSH.

Muốn tự lấy danh sách mới nhất từ gateway:

curl -s -H "Authorization: Bearer $TLPRO_API_KEY" \
  https://hoantienmuasam.net/llmtlpro/v1/models | jq -r '.data[].id'

Ghi chú

  • Patch thay thế toàn bộ config của row, không merge. Nếu profile khác cũng khai báo llm-pi-ai thì lớp đứng sau thắng toàn bộ — đừng khai báo nửa vời.
  • apiKeyEnv là tên biến, không phải key. Secret vẫn nằm trong env container (/proc/1/environ) hoặc credential store, không vào file cấu hình.
  • Catalog ở đây chỉ khai báo những model gateway thực sự trả về. Khai báo model không tồn tại sẽ lỗi lúc gọi, không lỗi lúc boot.

Nguồn của các con số (đã kiểm chứng 2026-11-05)

Bảng capability gốc nằm trong 9router@0.5.112: app/.next-cli-build/server/chunks/24.js. Trường thinkingFormat quyết định router gửi tham số nào lên upstream — và đó là thứ các mức trong đây phải khớp.

ModelthinkingFormatRouter làm gì với mức
glm-5.3openaigửi reasoning_effort nguyên văn
glm-5.3-flashopenaigửi reasoning_effort nguyên văn
deepseek-v4.1-flashdeepseekremap: xhigh|max→max, low|minimal→low, còn lại→high

Nhánh zai (nhánh gộp mức thành low/high/max) không áp dụng cho ba model này — nhánh đó chỉ chạy khi thinkingFormat là zai. Đã đối chiếu chunks/2380.js: case"zai" và case"openai" là hai nhánh riêng.

Vì sao probe max_tokens trước đây không có giá trị

Router âm thầm hạ giá trị vượt trần trước khi gửi upstream:

if (a.max_tokens) { let b = s.maxOutput || l.Uc; a.max_tokens > b && (a.max_tokens = b) ... }

Nên gửi max_tokens: 800000 rồi nhận một câu trả lời ngắn không chứng minh được điều gì: request đã bị cắt về maxOutput trước khi rời router. Trần thật phải đọc từ bảng capability, không phải từ việc gateway "nhận" request.

Ranh giới đo được: glm-5.3 nhận 131072 và từ chối 131073 → trần đúng là 131072, không phải 128000.

thinkingEffortSupported: false ở glm-5.3-flash

Bảng capability đánh dấu cờ này false cho bản flash ở một số provider. Nghĩa là mức gửi lên vẫn được chấp nhận nhưng không chắc tạo khác biệt thực sự. Vì vậy đừng kỳ vọng số reasoning token thay đổi theo mức ở model này.

Không thêm xhigh

xhigh chưa được xác minh là từng nguồn hỗ trợ hay quy đổi thế nào. Với GLM bộ mức đang được xử lý rõ ràng là low/high/max. Thêm xhigh lúc này chỉ tạo một lựa chọn trong UI mà không có bằng chứng nó có tác dụng.

Giới hạn chung của TLPRO (không phải token)

  • Body văn bản: 4.000.000 byte; có ảnh: 20.000.000 byte
  • Timeout upstream văn bản: 600 giây (proxy có thể ngắt sớm hơn)
  • /v1/models chỉ trả id, không trả context/output → plugin không tự đọc được

Comments

Loading…

Similar plugins

dsh-reasoning-tiers

Declares per-model reasoning-effort ladders for third-party providers in the llm-pi-ai settings section, so DSH's stock thinking-intensity selector works on models the pi-ai catalog does not describe.

Models & ProvidersManifest valid

★ 0

dsh plugin --profile web add dsh-reasoning-tiers

Reasoning-effort gear presets for third-party models: 16 vendor/model presets with per-mode custom wire values, written into dsh-llm-pi-ai with pre-write validation and per-rule rejection; per-model s

Models & ProvidersManifest valid

★ 0

dsh plugin --profile web add dsh-gearbox

automatically set reasoning efforts for self-defined models in Deepseek Harness

Models & ProvidersManifest valid

★ 0

MIT

JavaScript

dsh plugin --profile web add dsh-reasoning-adapter

by Rczlin

Gives pi-ai routed models a reasoning-effort ladder without manual settings: falls back declared to models.dev to a 7-tier default, and replaces the composer model chip with a Codex-style vertical pic

Models & ProvidersManifest valid

★ 0

JavaScript

Oct 8, 2026

dsh plugin --profile web add @dsh-better-reasoning/plugin

by drscrewdriver

OpenAI-completions-compatible adapter for custom gateways (vLLM / LM Studio / self-hosted proxies): always role:"system", thinking driven by the model config, Qwen-style response split, and vision-mod

Tools & CapabilitiesDevelopment & InfrastructureModels & ProvidersManifest valid

★ 2

↓ 38/wk

MIT

TypeScript

Nov 6, 2026

dsh plugin --profile web add dsh-llm-openai-completions

by prgrmrwy

DeepSeek Harness plugin: connect a self-hosted Magpie gateway as one LLM provider with models grouped by upstream provider, read-only usage cards, model visibility, default effort and per-session fast mode

Security & AuditUI & ExperienceModels & ProvidersManifest valid

★ 3

MIT

TypeScript

Nov 10, 2026

dsh plugin --profile web add dsh-magpie-connector