mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-27 09:21:35 +07:00
docs: sync minimax m2.7 references
This commit is contained in:
@@ -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”):
|
||||
|
||||
@@ -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
|
||||
|
||||
36
src/agents/minimax-docs.test.ts
Normal file
36
src/agents/minimax-docs.test.ts
Normal file
@@ -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)");
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user