From 4a26f10f688987a486950b17892ec39ddbb1ce11 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Mon, 23 Mar 2026 00:01:38 -0700 Subject: [PATCH] docs: sync minimax m2.7 references --- docs/help/testing.md | 4 ++-- docs/providers/minimax.md | 2 +- src/agents/minimax-docs.test.ts | 36 +++++++++++++++++++++++++++++++++ 3 files changed, 39 insertions(+), 3 deletions(-) create mode 100644 src/agents/minimax-docs.test.ts diff --git a/docs/help/testing.md b/docs/help/testing.md index 6395acc5548..141a887a162 100644 --- a/docs/help/testing.md +++ b/docs/help/testing.md @@ -191,7 +191,7 @@ Live tests are split into two layers so we can isolate failures: - `pnpm test:live` (or `OPENCLAW_LIVE_TEST=1` if invoking Vitest directly) - Set `OPENCLAW_LIVE_MODELS=modern` (or `all`, alias for modern) to actually run this suite; otherwise it skips to keep `pnpm test:live` focused on gateway smoke - How to select models: - - `OPENCLAW_LIVE_MODELS=modern` to run the modern allowlist (Opus/Sonnet/Haiku 4.5, GPT-5.x + Codex, Gemini 3, GLM 4.7, MiniMax M2.5, Grok 4) + - `OPENCLAW_LIVE_MODELS=modern` to run the modern allowlist (Opus/Sonnet/Haiku 4.5, GPT-5.x + Codex, Gemini 3, GLM 4.7, MiniMax M2.7, Grok 4) - `OPENCLAW_LIVE_MODELS=all` is an alias for the modern allowlist - or `OPENCLAW_LIVE_MODELS="openai/gpt-5.2,anthropic/claude-opus-4-6,..."` (comma allowlist) - How to select providers: @@ -222,7 +222,7 @@ Live tests are split into two layers so we can isolate failures: - How to enable: - `pnpm test:live` (or `OPENCLAW_LIVE_TEST=1` if invoking Vitest directly) - How to select models: - - Default: modern allowlist (Opus/Sonnet/Haiku 4.5, GPT-5.x + Codex, Gemini 3, GLM 4.7, MiniMax M2.5, Grok 4) + - Default: modern allowlist (Opus/Sonnet/Haiku 4.5, GPT-5.x + Codex, Gemini 3, GLM 4.7, MiniMax M2.7, Grok 4) - `OPENCLAW_LIVE_GATEWAY_MODELS=all` is an alias for the modern allowlist - Or set `OPENCLAW_LIVE_GATEWAY_MODELS="provider/model"` (or comma list) to narrow - How to select providers (avoid “OpenRouter everything”): diff --git a/docs/providers/minimax.md b/docs/providers/minimax.md index 722d4f7c6c7..f04c3984c3f 100644 --- a/docs/providers/minimax.md +++ b/docs/providers/minimax.md @@ -203,7 +203,7 @@ Use the interactive config wizard to set MiniMax without editing JSON: This usually means the **MiniMax provider isn’t configured** (no provider entry and no MiniMax auth profile/env key found). A fix for this detection is in -**2026.1.12** (unreleased at the time of writing). Fix by: +**2026.1.12**. Fix by: - Upgrading to **2026.1.12** (or run from source `main`), then restarting the gateway. - Running `openclaw configure` and selecting a **MiniMax** auth option, or diff --git a/src/agents/minimax-docs.test.ts b/src/agents/minimax-docs.test.ts new file mode 100644 index 00000000000..2d56e4684a3 --- /dev/null +++ b/src/agents/minimax-docs.test.ts @@ -0,0 +1,36 @@ +import fs from "node:fs"; +import path from "node:path"; +import { describe, expect, it } from "vitest"; +import { + MINIMAX_DEFAULT_MODEL_ID, + MINIMAX_DEFAULT_MODEL_REF, + MINIMAX_TEXT_MODEL_REFS, +} from "../plugins/provider-model-minimax.js"; + +const repoRoot = path.resolve(import.meta.dirname, "../.."); +const testingDoc = fs.readFileSync(path.join(repoRoot, "docs/help/testing.md"), "utf8"); +const faqDoc = fs.readFileSync(path.join(repoRoot, "docs/help/faq.md"), "utf8"); +const minimaxDoc = fs.readFileSync(path.join(repoRoot, "docs/providers/minimax.md"), "utf8"); + +describe("MiniMax docs sync", () => { + it("keeps the live-testing guide on the current MiniMax default", () => { + expect(testingDoc).toContain("MiniMax M2.7"); + expect(testingDoc).toContain(MINIMAX_DEFAULT_MODEL_REF); + }); + + it("keeps the FAQ troubleshooting model ids aligned", () => { + expect(faqDoc).toContain(`Unknown model: ${MINIMAX_DEFAULT_MODEL_REF}`); + for (const modelRef of MINIMAX_TEXT_MODEL_REFS.slice(3)) { + expect(faqDoc).toContain(modelRef); + } + }); + + it("keeps the provider doc aligned with shared MiniMax ids", () => { + expect(minimaxDoc).toContain(MINIMAX_DEFAULT_MODEL_ID); + expect(minimaxDoc).toContain(MINIMAX_DEFAULT_MODEL_REF); + for (const modelRef of MINIMAX_TEXT_MODEL_REFS.slice(3)) { + expect(minimaxDoc).toContain(modelRef); + } + expect(minimaxDoc).not.toContain("(unreleased at the time of writing)"); + }); +});