fix(minimax): declare CN provider auth aliases · openclaw/openclaw@ac2a1e5
steipete
·
2026-05-17
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -26,6 +26,7 @@ Docs: https://docs.openclaw.ai
|
26 | 26 | |
27 | 27 | - Channels/stream previews: contain rejected background draft-stream flushes so preview send failures do not surface as fatal unhandled rejections. Fixes #82712. (#82713) Thanks @coygeek. |
28 | 28 | - Providers/OpenAI Codex: include base `gpt-5.5` and `gpt-5.4` reasoning metadata in the bundled Codex catalog so `/think xhigh` remains available for those models. Fixes #82744. |
| 29 | +- Providers/MiniMax: declare CN endpoint auth aliases in the plugin manifest so `minimax-cn` and `minimax-portal-cn` reuse the correct base auth profiles instead of falling back to unrelated models after 401s. Fixes #63823. Thanks @kamusis. |
29 | 30 | - Agents/edit tool: honor `file_path` and related path aliases when resolving edit-recovery targets, so post-write errors no longer surface false edit failures after the file actually changed. Fixes #81909. Thanks @giodl73-repo. |
30 | 31 | - QQBot: treat only explicit truthy `QQBOT_DEBUG` values as enabling debug logs, so false-like values such as `0` no longer expose debug output. Fixes #82644. (#82697) Thanks @leno23. |
31 | 32 | - Agents/session_status: resolve implicit no-arg status lookups against the live run session, so `/think` changes report the current thinking level instead of stale sandbox state. Fixes #82669. (#82696) Thanks @leno23. |
|
| Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | +import { readFileSync } from "node:fs"; |
| 2 | +import { resolve } from "node:path"; |
1 | 3 | import type { StreamFn } from "@earendil-works/pi-agent-core"; |
2 | 4 | import type { Context, Model } from "@earendil-works/pi-ai"; |
3 | 5 | import { |
@@ -25,6 +27,17 @@ const minimaxProviderPlugin = {
|
25 | 27 | }; |
26 | 28 | |
27 | 29 | describe("minimax provider hooks", () => { |
| 30 | +it("declares CN provider auth aliases in the manifest", () => { |
| 31 | +const pluginJson = JSON.parse( |
| 32 | +readFileSync(resolve(import.meta.dirname, "openclaw.plugin.json"), "utf-8"), |
| 33 | +); |
| 34 | + |
| 35 | +expect(pluginJson.providerAuthAliases).toEqual({ |
| 36 | +"minimax-cn": "minimax", |
| 37 | +"minimax-portal-cn": "minimax-portal", |
| 38 | +}); |
| 39 | +}); |
| 40 | + |
28 | 41 | it("keeps native reasoning mode for MiniMax transports", async () => { |
29 | 42 | const { providers } = await registerProviderPlugin({ |
30 | 43 | plugin: minimaxProviderPlugin, |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -12,6 +12,10 @@
|
12 | 12 | "minimax": ["MINIMAX_CODE_PLAN_KEY", "MINIMAX_CODING_API_KEY", "MINIMAX_API_KEY"], |
13 | 13 | "minimax-portal": ["MINIMAX_OAUTH_TOKEN", "MINIMAX_API_KEY"] |
14 | 14 | }, |
| 15 | +"providerAuthAliases": { |
| 16 | +"minimax-cn": "minimax", |
| 17 | +"minimax-portal-cn": "minimax-portal" |
| 18 | + }, |
15 | 19 | "providerAuthChoices": [ |
16 | 20 | { |
17 | 21 | "provider": "minimax-portal", |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。