@spacex110/core 0.1.14 → 0.1.16

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spacex110/core",
3
- "version": "0.1.14",
3
+ "version": "0.1.16",
4
4
  "description": "Framework-agnostic AI Provider Selector core utilities",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
package/src/models.ts CHANGED
@@ -192,6 +192,11 @@ export const STATIC_MODELS: Record<string, Model[]> = {
192
192
  { id: 'MiniMax-M2.1-lightning', name: 'MiniMax M2.1 Lightning' },
193
193
  { id: 'MiniMax-M2', name: 'MiniMax M2' },
194
194
  ],
195
+ [PROVIDER_ID.MINIMAX_CN]: [
196
+ { id: 'MiniMax-M2.1', name: 'MiniMax M2.1' },
197
+ { id: 'MiniMax-M2.1-lightning', name: 'MiniMax M2.1 Lightning' },
198
+ { id: 'MiniMax-M2', name: 'MiniMax M2' },
199
+ ],
195
200
  };
196
201
 
197
202
  /**
package/src/providers.ts CHANGED
@@ -29,6 +29,7 @@ export const PROVIDER_ID = {
29
29
  OLLAMA: 'ollama',
30
30
  DOUBAO: 'doubao',
31
31
  MINIMAX: 'minimax',
32
+ MINIMAX_CN: 'minimax-cn',
32
33
  CUSTOM: 'custom',
33
34
  } as const;
34
35
 
@@ -132,7 +133,17 @@ export const PROVIDERS: Record<string, Provider> = {
132
133
  baseUrl: 'https://api.minimax.io/v1',
133
134
  needsApiKey: true,
134
135
  apiFormat: 'openai',
135
- supportsModelsApi: false,
136
+ supportsModelsApi: true,
137
+ icon: `${ICON_CDN_BASE}/minimax.svg`,
138
+ },
139
+ // MiniMax 中文站(同服务商,独立域名;模型列表与海外版一致)
140
+ [PROVIDER_ID.MINIMAX_CN]: {
141
+ id: PROVIDER_ID.MINIMAX_CN,
142
+ name: 'MiniMax (国内)',
143
+ baseUrl: 'https://api.minimaxi.com/v1',
144
+ needsApiKey: true,
145
+ apiFormat: 'openai',
146
+ supportsModelsApi: true,
136
147
  icon: `${ICON_CDN_BASE}/minimax.svg`,
137
148
  },
138
149
  [PROVIDER_ID.XAI]: {