@nextclaw/runtime 0.1.1 → 0.1.2

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.
Files changed (2) hide show
  1. package/dist/index.js +68 -0
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -282,6 +282,74 @@ var builtinProviderPlugin = {
282
282
  en: "Use https://api.minimaxi.com/v1 for Mainland China accounts, and https://api.minimax.io/v1 for overseas accounts."
283
283
  }
284
284
  },
285
+ {
286
+ name: "minimax-portal",
287
+ keywords: ["minimax-portal", "minimax"],
288
+ envKey: "MINIMAX_PORTAL_TOKEN",
289
+ displayName: "MiniMax Portal",
290
+ modelPrefix: "minimax-portal",
291
+ litellmPrefix: "minimax-portal",
292
+ skipPrefixes: ["minimax-portal/"],
293
+ envExtras: [],
294
+ isGateway: false,
295
+ isLocal: false,
296
+ detectByKeyPrefix: "",
297
+ detectByBaseKeyword: "",
298
+ defaultApiBase: "https://api.minimax.io/v1",
299
+ defaultModels: ["minimax-portal/MiniMax-M2.5", "minimax-portal/MiniMax-M2.5-highspeed"],
300
+ stripModelPrefix: false,
301
+ modelOverrides: [],
302
+ logo: "minimax.svg",
303
+ apiBaseHelp: {
304
+ zh: "OAuth Global \u9ED8\u8BA4\u4F7F\u7528 https://api.minimax.io/v1\uFF1BOAuth \u4E2D\u56FD\u533A\u9ED8\u8BA4\u4F7F\u7528 https://api.minimaxi.com/v1\u3002",
305
+ en: "OAuth Global uses https://api.minimax.io/v1 by default; OAuth CN uses https://api.minimaxi.com/v1."
306
+ },
307
+ auth: {
308
+ kind: "device_code",
309
+ protocol: "minimax_user_code",
310
+ displayName: "MiniMax OAuth",
311
+ baseUrl: "https://api.minimax.io",
312
+ deviceCodePath: "/oauth/code",
313
+ tokenPath: "/oauth/token",
314
+ clientId: "78257093-7e40-4613-99e0-527b14b39113",
315
+ scope: "group_id profile model.completion",
316
+ grantType: "urn:ietf:params:oauth:grant-type:user_code",
317
+ usePkce: true,
318
+ defaultMethodId: "cn",
319
+ methods: [
320
+ {
321
+ id: "global",
322
+ label: {
323
+ zh: "Global\uFF08\u6D77\u5916\uFF09",
324
+ en: "Global"
325
+ },
326
+ hint: {
327
+ zh: "\u9002\u7528\u4E8E\u6D77\u5916\u7528\u6237\uFF0C\u9ED8\u8BA4 API Base \u4E3A https://api.minimax.io/v1\u3002",
328
+ en: "For international users. Default API base: https://api.minimax.io/v1."
329
+ },
330
+ baseUrl: "https://api.minimax.io",
331
+ defaultApiBase: "https://api.minimax.io/v1"
332
+ },
333
+ {
334
+ id: "cn",
335
+ label: {
336
+ zh: "\u4E2D\u56FD\u533A\uFF08CN\uFF09",
337
+ en: "China Mainland (CN)"
338
+ },
339
+ hint: {
340
+ zh: "\u9002\u7528\u4E8E\u4E2D\u56FD\u533A\u7528\u6237\uFF0C\u9ED8\u8BA4 API Base \u4E3A https://api.minimaxi.com/v1\u3002",
341
+ en: "For Mainland China users. Default API base: https://api.minimaxi.com/v1."
342
+ },
343
+ baseUrl: "https://api.minimaxi.com",
344
+ defaultApiBase: "https://api.minimaxi.com/v1"
345
+ }
346
+ ],
347
+ note: {
348
+ zh: "\u901A\u8FC7\u6D4F\u89C8\u5668\u5B8C\u6210 MiniMax OAuth \u6388\u6743\u540E\u5373\u53EF\u4F7F\u7528\uFF0C\u65E0\u9700\u624B\u52A8\u586B\u5199 API Key\u3002",
349
+ en: "Complete MiniMax OAuth in browser to use this provider without manually entering an API key."
350
+ }
351
+ }
352
+ },
285
353
  {
286
354
  name: "vllm",
287
355
  keywords: ["vllm"],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nextclaw/runtime",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "private": false,
5
5
  "description": "NextClaw runtime assembly for builtin providers and channels.",
6
6
  "type": "module",
@@ -14,7 +14,7 @@
14
14
  "dist"
15
15
  ],
16
16
  "dependencies": {
17
- "@nextclaw/core": "^0.7.1"
17
+ "@nextclaw/core": "^0.7.3"
18
18
  },
19
19
  "devDependencies": {
20
20
  "@types/node": "^20.17.6",