返回目录
模型与 MCP 插件

dsh-providers-live-models

Luca4Don3/dsh-providers-live-models

Live model catalogs for DeepSeek Harness: OpenCode Go/Zen, OpenAI Codex and OpenDesign, with per-model switches, sign-in and subscription balances. · 为 DeepSeek Harness 提供实时模型目录:OpenCode Go/Zen、OpenAI Codex 与 OpenDesign,含逐模型开关、登录和订阅额度。

Stars
0
Forks
0
Issues
0
更新
7 天前

PROJECT TOPICS

项目标签

INSTALL REFERENCE

安装参考

未验证
dsh plugin --profile web add github:Luca4Don3/dsh-providers-live-models

该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。

PROJECT README

README

dsh-providers-live-models

English | 中文

test license: MIT

Live model catalogs for DeepSeek Harness (DSH): OpenCode Go, OpenCode Zen, native OpenAI Codex and OpenDesign. The plugin refreshes each route at runtime, adds per-model switches, sign-in and subscription usage, and keeps OpenCode's gateway headers and prompt-cache retention. OpenDesign DeepSeek models also request long prompt-cache retention. Nothing is bundled, so upstream changes need no release here.

It also adds compaction recovery: long histories are summarized in capacity-aware batches, and failures or cancellation preserve the original history.

Routes

Route Catalog Sign-in / credential Usage
opencode-go Pi + live Go roster OPENCODE_GO_API_KEY Go quota
opencode (Zen) Pi + live Zen roster API key or Console device login Zen balance
openai-codex Pi public catalog native ChatGPT OAuth OpenAI subscription
opendesign (prerelease) account catalog API key or device authorization quota and wallet in account mode

Install

Desktop: Plugins → Add plugin, paste github:Luca4Don3/dsh-providers-live-models, choose Enable now, restart DSH.

CLI:

dsh plugin --profile desktop add github:Luca4Don3/dsh-providers-live-models

Requires DSH 0.1.5-rc.1 or newer. OpenDesign accepts DSH 0.2.x with the explicitly verified pi-ai 1.1.x or 1.3.x compatibility lines. The shipped pairings 0.2.1-rc.5 with patched pi-ai 1.1.0, and 0.2.2-alpha.2 / 0.2.2-alpha.3 / 0.2.2-rc.1 / 0.2.2-rc.2 / 0.2.2-rc.3 with patched pi-ai 1.3.0, all pass the offline host smoke tests. pi-ai 1.5.0 is also accepted because it passes the same test against the 0.2.2-rc.1 adapter, ahead of any release that ships it. Unverified pi-ai lines are refused, and the actual adapter and transport methods are checked before registration. A mismatch disables only OpenDesign. The host needs GitHub access for the github: spec.

Use

  1. Configure the routes you use in DSH's llm-pi-ai providers. Codex uses native OAuth; Go and Zen read the key references below.
  2. Open Plugins → dsh-providers-live-models. Sign in to ChatGPT, OpenCode Console or OpenDesign, switch models under Model display (模型展示), then Save selection.
  3. Open Settings → Account & balance for usage. Refresh usage forces a query; cards are cached across restarts and freshMs defaults to five minutes.

All sign-ins write only the plugin's own credential records; model API keys and Codex OAuth are not overwritten.

Configuration

Set these on the providers-live-models entry:

config:
  freshMs: 300000
  timeoutMs: 15000
  goApiKeyRef: OPENCODE_GO_API_KEY
  zenApiKeyRef: OPENCODE_API_KEY
  openDesign:
    protocol: chat-completions # or responses
    stripTemperature: false

stripTemperature is only for OpenDesign gateways that reject temperature. quotaSource accepts auto, vela or control.

Each OpenDesign model's request budget comes from its own roster output_budget (128000 for the DeepSeek V4.1 Flash line, 32000 for GLM, MiMo and Hy). Set openDesign.outputTokenBudget to cap every model at one number, or openDesign.modelOverrides[id].maxTokens for a single model. A model the roster says nothing about falls back to 8192. See request budget.

OpenDesign retries MALFORMED_RESPONSE in addition to the host default set. Since DSH 0.2.2 a single unusable tool-arguments string fails the whole assistant turn before any tool runs, and the host default does not repeat that code. A gateway that merges two parallel tool calls into one arguments string would otherwise end the turn and wait for the user to send another message. The retry count and backoff stay the host defaults. See docs/opendesign.md.

OpenDesign models whose IDs start with deepseek declare compat.supportsLongCacheRetention: true and default to cacheRetention: long. The Chat Completions and Responses transports can then send prompt_cache_retention: "24h" and a session-based prompt_cache_key. Explicit transport retention options are preserved, and other models are unchanged. This is a request preference, not a guarantee of the gateway's cache lifetime or hit rate.

Limits

  • A model without a complete descriptor, or with an unsupported protocol, is reported and skipped, not guessed.
  • Catalogs refresh every five minutes. Endpoints, interval and cache age are fixed in the source; gateway base URLs are deliberately fixed, so a remote catalog cannot redirect requests.
  • OpenCode session headers and DeepSeek long prompt-cache retention are the plugin's two request rewrites; explicit request or model headers always win.
  • A 403 from the Zen billing endpoint means the endpoint denied access, not that the key lacks permission; Console login is preferred.
  • The plugin uses llm-pi-ai internals. A DSH update that changes them logs a warning and keeps the installed catalog.
  • With DSH's bundled pi-ai 0.87.1, the OpenCode Go route has no Google transport, so gemini-4-argon-contributor is unavailable there.

Development

npm test

Offline fixtures; no network or credentials needed. CI runs Node 18 and 24.

For an optional real-host smoke test (Node 24.9+), install the exact host and its official patched pi-ai version into an isolated fixture directory, then run node --experimental-import-meta-resolve scripts/verify-opendesign-host.mjs <fixture-dir>. It rejects real HTTP requests and uses synthetic credentials plus local SSE fixtures; it does not test vendor acceptance or the live GUI. Exit code 2 means the OpenDesign host-version gate rejected the fixture.

More: OpenDesign · provider contract · protocol probing · catalog injection

License

MIT

CLASSIFICATION EVIDENCE

分类依据

项目类型插件
功能分类模型与 MCP
规则置信度高

系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness、openai-codex。