返回目录
模型与 MCP 插件

dsh-minimax-model-sync

borncode-app/dsh-minimax-model-sync

Keeps an llm-pi-ai provider route's model list in sync with the provider's models endpoint.

Stars
0
Forks
0
Issues
0
更新
9 天前

PROJECT TOPICS

项目标签

INSTALL REFERENCE

安装参考

未验证
dsh plugin --profile web add github:borncode-app/dsh-minimax-model-sync

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

PROJECT README

README

This repository has moved into one monorepo.

The whole MiniMax set — the credit proxy, the daily check-in, the model-list sync, the composer quota chip, the MiniMax Code bridge, and the shared grant reader — now lives in borncode-app/dsh-minimax-kit, one repository with one Plugins entry.

this repo new home
dsh-minimax-auth packages/dsh-minimax-auth
dsh-minimax-credit packages/dsh-minimax-credit
dsh-minimax-checkin packages/dsh-minimax-checkin
dsh-minimax-model-sync packages/dsh-minimax-model-sync
dsh-minimax-bridge packages/dsh-minimax-bridge
dsh-model-quota packages/dsh-model-quota

The code and its history are unchanged; only the repository is shared. Install dsh-minimax-kit instead of the individual bundles. This repository stays open so the old links keep working.

dsh-minimax-model-sync

Keeps a provider route's model list in sync with the provider's own models endpoint.

release license plugin row


Where the one-entry kit lives

This plugin, dsh-minimax-credit, dsh-minimax-checkin, dsh-model-quota and dsh-minimax-bridge are also published as one bundle: dsh-minimax-kit.

Install the kit instead if you want the whole MiniMax set from a single Plugins entry. It ships these same packages as separate rows, so the code here is unchanged and each part keeps its own switch — this repository stays the home of the model-list sync.

What it does

An llm-pi-ai route carries a hand-written list of models. Providers retire and launch models without warning, so that list drifts: a model disappears and the picker offers a dead route, or a new one exists and you never see it.

This plugin reads the provider's own models endpoint and rewrites the route's model list to match — with an explicit exclude list for models the endpoint still advertises but you never want.

It is one small row, no UI, no background polling storm: it syncs at boot and then on a slow interval.

Features

  • Endpoint-driven — Anthropic-compatible roots list at {baseURL}/v1/models, OpenAI-compatible at {baseURL}/models; both are supported.
  • Reaches into the right entry — settingsNs + route say exactly which profile entry and provider are rewritten.
  • Exclude list — keeps retired families (the MiniMax M2 line, for example) out even though the endpoint still lists them.
  • Slow refresh — refreshMinutes: 360 by default; 0 syncs only at start.
  • Status file — sync-status.json records the last run: when, why, whether anything changed, and the resulting models.
  • No credentials of its own — it reuses whatever the route already uses.

Requirements

DeepSeek Harness 0.2.x
Runtime Node 24, supplied by the Harness runtime
A route An existing llm-pi-ai provider entry with an API key already configured

Install

git clone https://github.com/borncode-app/dsh-minimax-model-sync.git dsh-minimax-model-sync

Then:

plugin_manager install_bundle target=C:\path\to\dsh-minimax-model-sync

Restart once. The first sync runs at boot; check sync-status.json to see what it found.

Configuration

field default meaning
settingsNs llm-pi-ai The profile entry whose provider route is kept in sync
route minimax-api The provider key inside that entry
baseURL https://api.minimax.io/anthropic Root that serves the model listing
api anthropic-messages Wire format; decides the /v1/models vs /models path
exclude MiniMax-M2* family Models to leave out even when the endpoint advertises them
refreshMinutes 360 Refresh interval; 0 = only at start

Point it at another provider by changing all four of settingsNs / route / baseURL / api together.

How it works

boot / interval ──▶ GET {baseURL}/v1/models ──▶ subtract `exclude`
                            │
                            â–¼
                  rewrite profile entry models[]
                            │
                            â–¼
                   sync-status.json  (at / ok / trigger / changed / models)

The rewrite goes through the profile's own settings path, so the change is visible in the GUI's model picker without touching your patch file by hand.

Files

file role
index.js the sync row: fetch, filter, rewrite, status
cordis.patch.yml the bundle patch that inserts the row
locale/{en,th,zh}.json UI strings
icon.svg plugin icon

ภาษาไทย

llm-pi-ai route หนึ่ง ๆ เก็บรายการโมเดลไว้แบบเขียนมือ พอผู้ให้บริการปลด/ออกโมเดลใหม่ รายการนั้นก็เริ่มเน่า — Plugin นี้ไปอ่าน /v1/models ของผู้ให้บริการแล้ว เขียนรายการโมเดลใน route ให้ตรงกับของจริง

  • ระบุเป้าหมายด้วย settingsNs + route (ค่าเริ่มต้น: entry llm-pi-ai / route minimax-api)
  • exclude กันตระกูลที่ปลดระวางแล้วแต่อีเอนด์พอยต์ยัง list อยู่ (เช่นตระกูล M2)
  • refreshMinutes: 360 = เช็คทุก 6 ชั่วโมง, ตั้ง 0 = เช็คแค่ตอนบูต
  • ผลล่าสุดดูได้ที่ sync-status.json (เวลา / trigger / changed / models)
  • ไม่มี UI และไม่มี credential ของตัวเอง — ใช้ของ route เดิม

License

MIT © 2026 BornCode

CLASSIFICATION EVIDENCE

分类依据

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

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