mmx-cli 1.0.26 → 1.0.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/sdk.mjs CHANGED
@@ -4,7 +4,7 @@ import { copyFileSync, existsSync, readFileSync, renameSync, unlinkSync, writeFi
4
4
  // src/config/schema.ts
5
5
  var REGIONS = {
6
6
  global: "https://api.minimax.io",
7
- cn: "https://api.minimaxi.com"
7
+ cn: "https://api.minimax.cn"
8
8
  };
9
9
  var OAUTH_HOSTS = {
10
10
  global: "https://account.minimax.io",
@@ -415,7 +415,7 @@ Video models (Hailuo-2.3 / 2.3-Fast) require the Max plan or above.`;
415
415
  return "";
416
416
  }
417
417
  function upgradeUrl(url) {
418
- const host = url?.includes("minimaxi.com") ? "https://platform.minimaxi.com" : "https://platform.minimax.io";
418
+ const host = url?.includes("api.minimax.cn") || url?.includes("api.minimaxi.com") ? "https://platform.minimax.cn" : "https://platform.minimax.io";
419
419
  return `${host}/subscribe/token-plan`;
420
420
  }
421
421
  function mapApiError(status, body, url) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mmx-cli",
3
- "version": "1.0.26",
3
+ "version": "1.0.27",
4
4
  "description": "CLI for the MiniMax AI Platform",
5
5
  "type": "module",
6
6
  "repository": {