FN-5824: add MiniMax-M3 support examples
Update MiniMax model references to MiniMax-M3 across runtime UI, docs, and tests. - Update Hermes and OpenClaw model input placeholders to show MiniMax-M3 examples - Refresh Hermes runtime README and CLI parsing comment examples to MiniMax-M3 - Adjust dashboard usage test expectations from MiniMax-M* to MiniMax-M3 - Add Hermes runtime adapter coverage to ensure MiniMax-M3 is passed through unchanged Files changed: packages/dashboard/app/components/HermesRuntimeCard.tsx | 2 +- packages/dashboard/app/components/OpenClawRuntimeCard.tsx | 2 +- packages/dashboard/src/__tests__/usage.test.ts | 4 ++-- plugins/fusion-plugin-hermes-runtime/README.md | 2 +- .../src/__tests__/runtime-adapter.test.ts | 9 +++++++++ plugins/fusion-plugin-hermes-runtime/src/cli-spawn.ts | 2 +- 6 files changed, 15 insertions(+), 6 deletions(-) Fusion-Task-Id: FN-5824 Fusion-Task-Lineage: d9524280-be33-49f8-83d8-ac9b963164f8
This commit is contained in:
@@ -314,7 +314,7 @@ export function HermesRuntimeCard() {
|
||||
<input
|
||||
id="hermes-model"
|
||||
type="text"
|
||||
placeholder="e.g. claude-sonnet-4-5, MiniMax-M2.7"
|
||||
placeholder="e.g. claude-sonnet-4-5, MiniMax-M3"
|
||||
value={settings.model}
|
||||
disabled={!!settings.profile}
|
||||
onChange={(e) => setSettings((s) => ({ ...s, model: e.target.value }))}
|
||||
|
||||
@@ -277,7 +277,7 @@ export function OpenClawRuntimeCard() {
|
||||
<input
|
||||
id="openclaw-model"
|
||||
type="text"
|
||||
placeholder="e.g. anthropic/claude-haiku-4-5, minimax/MiniMax-M2.7"
|
||||
placeholder="e.g. anthropic/claude-haiku-4-5, minimax/MiniMax-M3"
|
||||
value={settings.model}
|
||||
onChange={(e) => setSettings((s) => ({ ...s, model: e.target.value }))}
|
||||
/>
|
||||
|
||||
@@ -2536,7 +2536,7 @@ describe("usage", () => {
|
||||
const mockResponse = {
|
||||
model_remains: [
|
||||
{
|
||||
model_name: "MiniMax-M*",
|
||||
model_name: "MiniMax-M3",
|
||||
current_interval_total_count: 4500,
|
||||
// Note: current_interval_usage_count is actually REMAINING, not used
|
||||
current_interval_usage_count: 4000,
|
||||
@@ -2596,7 +2596,7 @@ describe("usage", () => {
|
||||
expect(minimax.status).toBe("ok");
|
||||
expect(minimax.windows).toHaveLength(2);
|
||||
|
||||
const textWindow = minimax.windows.find((w) => w.label === "MiniMax-M*")!;
|
||||
const textWindow = minimax.windows.find((w) => w.label === "MiniMax-M3")!;
|
||||
expect(textWindow).toBeDefined();
|
||||
// total=4500, remaining=4000, used=500 → 500/4500*100 ≈ 11.1%
|
||||
expect(textWindow.percentUsed).toBeCloseTo(11.1, 0);
|
||||
|
||||
@@ -60,7 +60,7 @@ Because we drive the CLI's `chat -q` mode:
|
||||
| Key | Env var | Default | Notes |
|
||||
|---|---|---|---|
|
||||
| `binaryPath` | `HERMES_BIN` | `hermes` | Path to the `hermes` binary. Falls back to PATH lookup. |
|
||||
| `model` | `HERMES_MODEL_ID` | (Hermes default) | `-m <model>` (e.g. `claude-sonnet-4-5`, `MiniMax-M2.7`). |
|
||||
| `model` | `HERMES_MODEL_ID` | (Hermes default) | `-m <model>` (e.g. `claude-sonnet-4-5`, `MiniMax-M3`). |
|
||||
| `provider` | `HERMES_PROVIDER` | (Hermes default) | `--provider <provider>` — one of `auto`, `anthropic`, `openrouter`, `gemini`, `openai-codex`, `copilot`, `copilot-acp`, `huggingface`, `zai`, `kimi-coding`, `minimax`, `minimax-cn`, `kilocode`, `xiaomi`, `nous`. |
|
||||
| `maxTurns` | `HERMES_MAX_TURNS` | `12` | `--max-turns N`. Hermes's own default is 90; we cap lower. |
|
||||
| `yolo` | `HERMES_YOLO` | `false` | `--yolo` — skip interactive approval. Required for non-interactive sessions that use shell-style tools. |
|
||||
|
||||
@@ -137,6 +137,15 @@ describe("HermesRuntimeAdapter — describeModel", () => {
|
||||
expect(adapter.describeModel(session)).toBe("hermes/MiniMax-M2.7");
|
||||
});
|
||||
|
||||
it("passes MiniMax-M3 through unchanged", async () => {
|
||||
const adapter = new HermesRuntimeAdapter({ model: "MiniMax-M3" });
|
||||
const { session } = await adapter.createSession({
|
||||
cwd: "/repo",
|
||||
systemPrompt: "sys",
|
||||
});
|
||||
expect(adapter.describeModel(session)).toBe("hermes/MiniMax-M3");
|
||||
});
|
||||
|
||||
it("returns plain 'hermes' when neither set", async () => {
|
||||
const adapter = new HermesRuntimeAdapter({});
|
||||
const { session } = await adapter.createSession({
|
||||
|
||||
@@ -92,7 +92,7 @@ const EM_DASH = "—";
|
||||
* ```
|
||||
* Profile Model Gateway Alias
|
||||
* ─────────────── ───────────────────────── ─────────── ────────────
|
||||
* ◆default MiniMax-M2.7 stopped —
|
||||
* ◆default MiniMax-M3 stopped —
|
||||
* ```
|
||||
*
|
||||
* Columns are whitespace-aligned (variable-width). The function splits on runs
|
||||
|
||||
Reference in New Issue
Block a user