@eum-agent/llm-provider-minimax 0.0.0-stage → 1.2.0
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/assets/NOTICE +28 -0
- package/assets/minimax-cn.svg +1 -0
- package/assets/minimax.svg +1 -0
- package/dist/index.js +728 -0
- package/package.json +38 -3
- package/README.md +0 -3
package/assets/NOTICE
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
Vendor marks from lobehub/lobe-icons (@lobehub/icons-static-svg 1.95.1, MIT), except where noted. Each file is named for the catalogue row contributed by its owning provider extension.
|
|
2
|
+
|
|
3
|
+
- zhipu*.svg: the Z glyph from Z.ai's own logo (https://z-cdn.chatglm.cn/z-ai/static/logo.svg), without its dark tile.
|
|
4
|
+
- kimi-coding*.svg: the K filled black, as kimi.com's light-scheme favicon draws it; the lobe-icons original fills it white.
|
|
5
|
+
|
|
6
|
+
The lobe-icons marks are distributed under the MIT License:
|
|
7
|
+
|
|
8
|
+
MIT License
|
|
9
|
+
|
|
10
|
+
Copyright (c) 2023 LobeHub
|
|
11
|
+
|
|
12
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
13
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
14
|
+
in the Software without restriction, including without limitation the rights
|
|
15
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
16
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
17
|
+
furnished to do so, subject to the following conditions:
|
|
18
|
+
|
|
19
|
+
The above copyright notice and this permission notice shall be included in all
|
|
20
|
+
copies or substantial portions of the Software.
|
|
21
|
+
|
|
22
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
23
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
24
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
25
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
26
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
27
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
28
|
+
SOFTWARE.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg height="24" style="flex:none;line-height:1" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><title>Minimax</title><defs><linearGradient id="lobe-icons-minimax-_R_0_" x1="0%" x2="100.182%" y1="50.057%" y2="50.057%"><stop offset="0%" stop-color="#E2167E"></stop><stop offset="100%" stop-color="#FE603C"></stop></linearGradient></defs><path d="M16.278 2c1.156 0 2.093.927 2.093 2.07v12.501a.74.74 0 00.744.709.74.74 0 00.743-.709V9.099a2.06 2.06 0 012.071-2.049A2.06 2.06 0 0124 9.1v6.561a.649.649 0 01-.652.645.649.649 0 01-.653-.645V9.1a.762.762 0 00-.766-.758.762.762 0 00-.766.758v7.472a2.037 2.037 0 01-2.048 2.026 2.037 2.037 0 01-2.048-2.026v-12.5a.785.785 0 00-.788-.753.785.785 0 00-.789.752l-.001 15.904A2.037 2.037 0 0113.441 22a2.037 2.037 0 01-2.048-2.026V18.04c0-.356.292-.645.652-.645.36 0 .652.289.652.645v1.934c0 .263.142.506.372.638.23.131.514.131.744 0a.734.734 0 00.372-.638V4.07c0-1.143.937-2.07 2.093-2.07zm-5.674 0c1.156 0 2.093.927 2.093 2.07v11.523a.648.648 0 01-.652.645.648.648 0 01-.652-.645V4.07a.785.785 0 00-.789-.78.785.785 0 00-.789.78v14.013a2.06 2.06 0 01-2.07 2.048 2.06 2.06 0 01-2.071-2.048V9.1a.762.762 0 00-.766-.758.762.762 0 00-.766.758v3.8a2.06 2.06 0 01-2.071 2.049A2.06 2.06 0 010 12.9v-1.378c0-.357.292-.646.652-.646.36 0 .653.29.653.646V12.9c0 .418.343.757.766.757s.766-.339.766-.757V9.099a2.06 2.06 0 012.07-2.048 2.06 2.06 0 012.071 2.048v8.984c0 .419.343.758.767.758.423 0 .766-.339.766-.758V4.07c0-1.143.937-2.07 2.093-2.07z" fill="url(#lobe-icons-minimax-_R_0_)" fill-rule="nonzero"></path></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg height="24" style="flex:none;line-height:1" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><title>Minimax</title><defs><linearGradient id="lobe-icons-minimax-_R_0_" x1="0%" x2="100.182%" y1="50.057%" y2="50.057%"><stop offset="0%" stop-color="#E2167E"></stop><stop offset="100%" stop-color="#FE603C"></stop></linearGradient></defs><path d="M16.278 2c1.156 0 2.093.927 2.093 2.07v12.501a.74.74 0 00.744.709.74.74 0 00.743-.709V9.099a2.06 2.06 0 012.071-2.049A2.06 2.06 0 0124 9.1v6.561a.649.649 0 01-.652.645.649.649 0 01-.653-.645V9.1a.762.762 0 00-.766-.758.762.762 0 00-.766.758v7.472a2.037 2.037 0 01-2.048 2.026 2.037 2.037 0 01-2.048-2.026v-12.5a.785.785 0 00-.788-.753.785.785 0 00-.789.752l-.001 15.904A2.037 2.037 0 0113.441 22a2.037 2.037 0 01-2.048-2.026V18.04c0-.356.292-.645.652-.645.36 0 .652.289.652.645v1.934c0 .263.142.506.372.638.23.131.514.131.744 0a.734.734 0 00.372-.638V4.07c0-1.143.937-2.07 2.093-2.07zm-5.674 0c1.156 0 2.093.927 2.093 2.07v11.523a.648.648 0 01-.652.645.648.648 0 01-.652-.645V4.07a.785.785 0 00-.789-.78.785.785 0 00-.789.78v14.013a2.06 2.06 0 01-2.07 2.048 2.06 2.06 0 01-2.071-2.048V9.1a.762.762 0 00-.766-.758.762.762 0 00-.766.758v3.8a2.06 2.06 0 01-2.071 2.049A2.06 2.06 0 010 12.9v-1.378c0-.357.292-.646.652-.646.36 0 .653.29.653.646V12.9c0 .418.343.757.766.757s.766-.339.766-.757V9.099a2.06 2.06 0 012.07-2.048 2.06 2.06 0 012.071 2.048v8.984c0 .419.343.758.767.758.423 0 .766-.339.766-.758V4.07c0-1.143.937-2.07 2.093-2.07z" fill="url(#lobe-icons-minimax-_R_0_)" fill-rule="nonzero"></path></svg>
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,728 @@
|
|
|
1
|
+
//#endregion
|
|
2
|
+
//#region src/catalog.ts
|
|
3
|
+
const catalog = {
|
|
4
|
+
vendors: [{
|
|
5
|
+
kind: "vendor",
|
|
6
|
+
id: "minimax-cn",
|
|
7
|
+
logo: "data:image/svg+xml,%3Csvg%20height%3D%2224%22%20style%3D%22flex%3Anone%3Bline-height%3A1%22%20viewBox%3D%220%200%2024%2024%22%20width%3D%2224%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Ctitle%3EMinimax%3C%2Ftitle%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22lobe-icons-minimax-_R_0_%22%20x1%3D%220%25%22%20x2%3D%22100.182%25%22%20y1%3D%2250.057%25%22%20y2%3D%2250.057%25%22%3E%3Cstop%20offset%3D%220%25%22%20stop-color%3D%22%23E2167E%22%3E%3C%2Fstop%3E%3Cstop%20offset%3D%22100%25%22%20stop-color%3D%22%23FE603C%22%3E%3C%2Fstop%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Cpath%20d%3D%22M16.278%202c1.156%200%202.093.927%202.093%202.07v12.501a.74.74%200%2000.744.709.74.74%200%2000.743-.709V9.099a2.06%202.06%200%20012.071-2.049A2.06%202.06%200%200124%209.1v6.561a.649.649%200%2001-.652.645.649.649%200%2001-.653-.645V9.1a.762.762%200%2000-.766-.758.762.762%200%2000-.766.758v7.472a2.037%202.037%200%2001-2.048%202.026%202.037%202.037%200%2001-2.048-2.026v-12.5a.785.785%200%2000-.788-.753.785.785%200%2000-.789.752l-.001%2015.904A2.037%202.037%200%200113.441%2022a2.037%202.037%200%2001-2.048-2.026V18.04c0-.356.292-.645.652-.645.36%200%20.652.289.652.645v1.934c0%20.263.142.506.372.638.23.131.514.131.744%200a.734.734%200%2000.372-.638V4.07c0-1.143.937-2.07%202.093-2.07zm-5.674%200c1.156%200%202.093.927%202.093%202.07v11.523a.648.648%200%2001-.652.645.648.648%200%2001-.652-.645V4.07a.785.785%200%2000-.789-.78.785.785%200%2000-.789.78v14.013a2.06%202.06%200%2001-2.07%202.048%202.06%202.06%200%2001-2.071-2.048V9.1a.762.762%200%2000-.766-.758.762.762%200%2000-.766.758v3.8a2.06%202.06%200%2001-2.071%202.049A2.06%202.06%200%20010%2012.9v-1.378c0-.357.292-.646.652-.646.36%200%20.653.29.653.646V12.9c0%20.418.343.757.766.757s.766-.339.766-.757V9.099a2.06%202.06%200%20012.07-2.048%202.06%202.06%200%20012.071%202.048v8.984c0%20.419.343.758.767.758.423%200%20.766-.339.766-.758V4.07c0-1.143.937-2.07%202.093-2.07z%22%20fill%3D%22url%28%23lobe-icons-minimax-_R_0_%29%22%20fill-rule%3D%22nonzero%22%3E%3C%2Fpath%3E%3C%2Fsvg%3E",
|
|
8
|
+
name: "MiniMax",
|
|
9
|
+
region: "\u56fd\u5185",
|
|
10
|
+
market: "domestic",
|
|
11
|
+
catalogKey: "minimax-cn",
|
|
12
|
+
canListModels: true,
|
|
13
|
+
endpoints: [{
|
|
14
|
+
baseUrl: "https://api.minimaxi.com/anthropic/v1",
|
|
15
|
+
type: "minimax",
|
|
16
|
+
endpointId: "minimax-cn",
|
|
17
|
+
protocolIds: [
|
|
18
|
+
"anthropic",
|
|
19
|
+
"openai",
|
|
20
|
+
"openai-responses"
|
|
21
|
+
],
|
|
22
|
+
modelThinkingSwitch: true,
|
|
23
|
+
alwaysThinking: ["MiniMax-M2"]
|
|
24
|
+
}]
|
|
25
|
+
}, {
|
|
26
|
+
kind: "vendor",
|
|
27
|
+
id: "minimax",
|
|
28
|
+
logo: "data:image/svg+xml,%3Csvg%20height%3D%2224%22%20style%3D%22flex%3Anone%3Bline-height%3A1%22%20viewBox%3D%220%200%2024%2024%22%20width%3D%2224%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Ctitle%3EMinimax%3C%2Ftitle%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22lobe-icons-minimax-_R_0_%22%20x1%3D%220%25%22%20x2%3D%22100.182%25%22%20y1%3D%2250.057%25%22%20y2%3D%2250.057%25%22%3E%3Cstop%20offset%3D%220%25%22%20stop-color%3D%22%23E2167E%22%3E%3C%2Fstop%3E%3Cstop%20offset%3D%22100%25%22%20stop-color%3D%22%23FE603C%22%3E%3C%2Fstop%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Cpath%20d%3D%22M16.278%202c1.156%200%202.093.927%202.093%202.07v12.501a.74.74%200%2000.744.709.74.74%200%2000.743-.709V9.099a2.06%202.06%200%20012.071-2.049A2.06%202.06%200%200124%209.1v6.561a.649.649%200%2001-.652.645.649.649%200%2001-.653-.645V9.1a.762.762%200%2000-.766-.758.762.762%200%2000-.766.758v7.472a2.037%202.037%200%2001-2.048%202.026%202.037%202.037%200%2001-2.048-2.026v-12.5a.785.785%200%2000-.788-.753.785.785%200%2000-.789.752l-.001%2015.904A2.037%202.037%200%200113.441%2022a2.037%202.037%200%2001-2.048-2.026V18.04c0-.356.292-.645.652-.645.36%200%20.652.289.652.645v1.934c0%20.263.142.506.372.638.23.131.514.131.744%200a.734.734%200%2000.372-.638V4.07c0-1.143.937-2.07%202.093-2.07zm-5.674%200c1.156%200%202.093.927%202.093%202.07v11.523a.648.648%200%2001-.652.645.648.648%200%2001-.652-.645V4.07a.785.785%200%2000-.789-.78.785.785%200%2000-.789.78v14.013a2.06%202.06%200%2001-2.07%202.048%202.06%202.06%200%2001-2.071-2.048V9.1a.762.762%200%2000-.766-.758.762.762%200%2000-.766.758v3.8a2.06%202.06%200%2001-2.071%202.049A2.06%202.06%200%20010%2012.9v-1.378c0-.357.292-.646.652-.646.36%200%20.653.29.653.646V12.9c0%20.418.343.757.766.757s.766-.339.766-.757V9.099a2.06%202.06%200%20012.07-2.048%202.06%202.06%200%20012.071%202.048v8.984c0%20.419.343.758.767.758.423%200%20.766-.339.766-.758V4.07c0-1.143.937-2.07%202.093-2.07z%22%20fill%3D%22url%28%23lobe-icons-minimax-_R_0_%29%22%20fill-rule%3D%22nonzero%22%3E%3C%2Fpath%3E%3C%2Fsvg%3E",
|
|
29
|
+
name: "MiniMax",
|
|
30
|
+
region: "\u56fd\u9645",
|
|
31
|
+
market: "international",
|
|
32
|
+
catalogKey: "minimax",
|
|
33
|
+
canListModels: true,
|
|
34
|
+
endpoints: [{
|
|
35
|
+
baseUrl: "https://api.minimax.io/anthropic/v1",
|
|
36
|
+
type: "minimax",
|
|
37
|
+
endpointId: "minimax",
|
|
38
|
+
protocolIds: [
|
|
39
|
+
"anthropic",
|
|
40
|
+
"openai",
|
|
41
|
+
"openai-responses"
|
|
42
|
+
],
|
|
43
|
+
modelThinkingSwitch: true,
|
|
44
|
+
alwaysThinking: ["MiniMax-M2"]
|
|
45
|
+
}]
|
|
46
|
+
}],
|
|
47
|
+
snapshot: {
|
|
48
|
+
"minimax-cn": {
|
|
49
|
+
"MiniMax-M2": {
|
|
50
|
+
"id": "MiniMax-M2",
|
|
51
|
+
"name": "MiniMax-M2",
|
|
52
|
+
"family": "minimax",
|
|
53
|
+
"reasoning": true,
|
|
54
|
+
"reasoning_options": [],
|
|
55
|
+
"temperature": true,
|
|
56
|
+
"tool_call": true,
|
|
57
|
+
"attachment": false,
|
|
58
|
+
"modalities": {
|
|
59
|
+
"input": ["text"],
|
|
60
|
+
"output": ["text"]
|
|
61
|
+
},
|
|
62
|
+
"limit": {
|
|
63
|
+
"context": 204800,
|
|
64
|
+
"output": 131072
|
|
65
|
+
},
|
|
66
|
+
"release_date": "2025-10-27"
|
|
67
|
+
},
|
|
68
|
+
"MiniMax-M2.1": {
|
|
69
|
+
"id": "MiniMax-M2.1",
|
|
70
|
+
"name": "MiniMax-M2.1",
|
|
71
|
+
"family": "minimax",
|
|
72
|
+
"reasoning": true,
|
|
73
|
+
"reasoning_options": [],
|
|
74
|
+
"temperature": true,
|
|
75
|
+
"tool_call": true,
|
|
76
|
+
"attachment": false,
|
|
77
|
+
"modalities": {
|
|
78
|
+
"input": ["text"],
|
|
79
|
+
"output": ["text"]
|
|
80
|
+
},
|
|
81
|
+
"limit": {
|
|
82
|
+
"context": 204800,
|
|
83
|
+
"output": 131072
|
|
84
|
+
},
|
|
85
|
+
"release_date": "2025-12-23"
|
|
86
|
+
},
|
|
87
|
+
"MiniMax-M2.7-highspeed": {
|
|
88
|
+
"id": "MiniMax-M2.7-highspeed",
|
|
89
|
+
"name": "MiniMax-M2.7-highspeed",
|
|
90
|
+
"family": "minimax",
|
|
91
|
+
"reasoning": true,
|
|
92
|
+
"reasoning_options": [],
|
|
93
|
+
"temperature": true,
|
|
94
|
+
"tool_call": true,
|
|
95
|
+
"attachment": false,
|
|
96
|
+
"modalities": {
|
|
97
|
+
"input": ["text"],
|
|
98
|
+
"output": ["text"]
|
|
99
|
+
},
|
|
100
|
+
"limit": {
|
|
101
|
+
"context": 204800,
|
|
102
|
+
"output": 131072
|
|
103
|
+
},
|
|
104
|
+
"release_date": "2026-03-18"
|
|
105
|
+
},
|
|
106
|
+
"MiniMax-M3": {
|
|
107
|
+
"id": "MiniMax-M3",
|
|
108
|
+
"name": "MiniMax-M3",
|
|
109
|
+
"family": "minimax",
|
|
110
|
+
"reasoning": true,
|
|
111
|
+
"reasoning_options": [{ "type": "toggle" }],
|
|
112
|
+
"temperature": true,
|
|
113
|
+
"tool_call": true,
|
|
114
|
+
"attachment": true,
|
|
115
|
+
"modalities": {
|
|
116
|
+
"input": [
|
|
117
|
+
"text",
|
|
118
|
+
"image",
|
|
119
|
+
"video"
|
|
120
|
+
],
|
|
121
|
+
"output": ["text"]
|
|
122
|
+
},
|
|
123
|
+
"limit": {
|
|
124
|
+
"context": 1e6,
|
|
125
|
+
"output": 524288
|
|
126
|
+
},
|
|
127
|
+
"release_date": "2026-06-01"
|
|
128
|
+
},
|
|
129
|
+
"MiniMax-M3.1-Flash": {
|
|
130
|
+
"id": "MiniMax-M3.1-Flash",
|
|
131
|
+
"name": "MiniMax-M3.1-Flash",
|
|
132
|
+
"family": "minimax",
|
|
133
|
+
"reasoning": true,
|
|
134
|
+
"reasoning_options": [{
|
|
135
|
+
"type": "effort",
|
|
136
|
+
"values": [
|
|
137
|
+
"low",
|
|
138
|
+
"medium",
|
|
139
|
+
"high",
|
|
140
|
+
"xhigh",
|
|
141
|
+
"max"
|
|
142
|
+
]
|
|
143
|
+
}],
|
|
144
|
+
"temperature": true,
|
|
145
|
+
"tool_call": true,
|
|
146
|
+
"attachment": true,
|
|
147
|
+
"modalities": {
|
|
148
|
+
"input": [
|
|
149
|
+
"text",
|
|
150
|
+
"image",
|
|
151
|
+
"video"
|
|
152
|
+
],
|
|
153
|
+
"output": ["text"]
|
|
154
|
+
},
|
|
155
|
+
"limit": {
|
|
156
|
+
"context": 1e6,
|
|
157
|
+
"output": 524288
|
|
158
|
+
},
|
|
159
|
+
"release_date": "2026-10-19"
|
|
160
|
+
},
|
|
161
|
+
"MiniMax-M2.5": {
|
|
162
|
+
"id": "MiniMax-M2.5",
|
|
163
|
+
"name": "MiniMax-M2.5",
|
|
164
|
+
"family": "minimax",
|
|
165
|
+
"reasoning": true,
|
|
166
|
+
"reasoning_options": [],
|
|
167
|
+
"temperature": true,
|
|
168
|
+
"tool_call": true,
|
|
169
|
+
"attachment": false,
|
|
170
|
+
"modalities": {
|
|
171
|
+
"input": ["text"],
|
|
172
|
+
"output": ["text"]
|
|
173
|
+
},
|
|
174
|
+
"limit": {
|
|
175
|
+
"context": 204800,
|
|
176
|
+
"output": 131072
|
|
177
|
+
},
|
|
178
|
+
"release_date": "2026-02-12"
|
|
179
|
+
},
|
|
180
|
+
"MiniMax-M2.5-highspeed": {
|
|
181
|
+
"id": "MiniMax-M2.5-highspeed",
|
|
182
|
+
"name": "MiniMax-M2.5-highspeed",
|
|
183
|
+
"family": "minimax",
|
|
184
|
+
"reasoning": true,
|
|
185
|
+
"reasoning_options": [],
|
|
186
|
+
"temperature": true,
|
|
187
|
+
"tool_call": true,
|
|
188
|
+
"attachment": false,
|
|
189
|
+
"modalities": {
|
|
190
|
+
"input": ["text"],
|
|
191
|
+
"output": ["text"]
|
|
192
|
+
},
|
|
193
|
+
"limit": {
|
|
194
|
+
"context": 204800,
|
|
195
|
+
"output": 131072
|
|
196
|
+
},
|
|
197
|
+
"release_date": "2026-02-13"
|
|
198
|
+
},
|
|
199
|
+
"MiniMax-M2.7": {
|
|
200
|
+
"id": "MiniMax-M2.7",
|
|
201
|
+
"name": "MiniMax-M2.7",
|
|
202
|
+
"family": "minimax",
|
|
203
|
+
"reasoning": true,
|
|
204
|
+
"reasoning_options": [],
|
|
205
|
+
"temperature": true,
|
|
206
|
+
"tool_call": true,
|
|
207
|
+
"attachment": false,
|
|
208
|
+
"modalities": {
|
|
209
|
+
"input": ["text"],
|
|
210
|
+
"output": ["text"]
|
|
211
|
+
},
|
|
212
|
+
"limit": {
|
|
213
|
+
"context": 204800,
|
|
214
|
+
"output": 131072
|
|
215
|
+
},
|
|
216
|
+
"release_date": "2026-03-18"
|
|
217
|
+
}
|
|
218
|
+
},
|
|
219
|
+
"minimax": {
|
|
220
|
+
"MiniMax-M2": {
|
|
221
|
+
"id": "MiniMax-M2",
|
|
222
|
+
"name": "MiniMax-M2",
|
|
223
|
+
"family": "minimax",
|
|
224
|
+
"reasoning": true,
|
|
225
|
+
"reasoning_options": [],
|
|
226
|
+
"temperature": true,
|
|
227
|
+
"tool_call": true,
|
|
228
|
+
"attachment": false,
|
|
229
|
+
"modalities": {
|
|
230
|
+
"input": ["text"],
|
|
231
|
+
"output": ["text"]
|
|
232
|
+
},
|
|
233
|
+
"limit": {
|
|
234
|
+
"context": 204800,
|
|
235
|
+
"output": 131072
|
|
236
|
+
},
|
|
237
|
+
"release_date": "2025-10-27"
|
|
238
|
+
},
|
|
239
|
+
"MiniMax-M2.1": {
|
|
240
|
+
"id": "MiniMax-M2.1",
|
|
241
|
+
"name": "MiniMax-M2.1",
|
|
242
|
+
"family": "minimax",
|
|
243
|
+
"reasoning": true,
|
|
244
|
+
"reasoning_options": [],
|
|
245
|
+
"temperature": true,
|
|
246
|
+
"tool_call": true,
|
|
247
|
+
"attachment": false,
|
|
248
|
+
"modalities": {
|
|
249
|
+
"input": ["text"],
|
|
250
|
+
"output": ["text"]
|
|
251
|
+
},
|
|
252
|
+
"limit": {
|
|
253
|
+
"context": 204800,
|
|
254
|
+
"output": 131072
|
|
255
|
+
},
|
|
256
|
+
"release_date": "2025-12-23"
|
|
257
|
+
},
|
|
258
|
+
"MiniMax-M2.7-highspeed": {
|
|
259
|
+
"id": "MiniMax-M2.7-highspeed",
|
|
260
|
+
"name": "MiniMax-M2.7-highspeed",
|
|
261
|
+
"family": "minimax",
|
|
262
|
+
"reasoning": true,
|
|
263
|
+
"reasoning_options": [],
|
|
264
|
+
"temperature": true,
|
|
265
|
+
"tool_call": true,
|
|
266
|
+
"attachment": false,
|
|
267
|
+
"modalities": {
|
|
268
|
+
"input": ["text"],
|
|
269
|
+
"output": ["text"]
|
|
270
|
+
},
|
|
271
|
+
"limit": {
|
|
272
|
+
"context": 204800,
|
|
273
|
+
"output": 131072
|
|
274
|
+
},
|
|
275
|
+
"release_date": "2026-03-18"
|
|
276
|
+
},
|
|
277
|
+
"MiniMax-M3": {
|
|
278
|
+
"id": "MiniMax-M3",
|
|
279
|
+
"name": "MiniMax-M3",
|
|
280
|
+
"family": "minimax",
|
|
281
|
+
"reasoning": true,
|
|
282
|
+
"reasoning_options": [{ "type": "toggle" }],
|
|
283
|
+
"temperature": true,
|
|
284
|
+
"tool_call": true,
|
|
285
|
+
"attachment": true,
|
|
286
|
+
"modalities": {
|
|
287
|
+
"input": [
|
|
288
|
+
"text",
|
|
289
|
+
"image",
|
|
290
|
+
"video"
|
|
291
|
+
],
|
|
292
|
+
"output": ["text"]
|
|
293
|
+
},
|
|
294
|
+
"limit": {
|
|
295
|
+
"context": 1e6,
|
|
296
|
+
"output": 524288
|
|
297
|
+
},
|
|
298
|
+
"release_date": "2026-06-01"
|
|
299
|
+
},
|
|
300
|
+
"MiniMax-M3.1-Flash": {
|
|
301
|
+
"id": "MiniMax-M3.1-Flash",
|
|
302
|
+
"name": "MiniMax-M3.1-Flash",
|
|
303
|
+
"family": "minimax",
|
|
304
|
+
"reasoning": true,
|
|
305
|
+
"reasoning_options": [{
|
|
306
|
+
"type": "effort",
|
|
307
|
+
"values": [
|
|
308
|
+
"low",
|
|
309
|
+
"medium",
|
|
310
|
+
"high",
|
|
311
|
+
"xhigh",
|
|
312
|
+
"max"
|
|
313
|
+
]
|
|
314
|
+
}],
|
|
315
|
+
"temperature": true,
|
|
316
|
+
"tool_call": true,
|
|
317
|
+
"attachment": true,
|
|
318
|
+
"modalities": {
|
|
319
|
+
"input": [
|
|
320
|
+
"text",
|
|
321
|
+
"image",
|
|
322
|
+
"video"
|
|
323
|
+
],
|
|
324
|
+
"output": ["text"]
|
|
325
|
+
},
|
|
326
|
+
"limit": {
|
|
327
|
+
"context": 1e6,
|
|
328
|
+
"output": 524288
|
|
329
|
+
},
|
|
330
|
+
"release_date": "2026-10-19"
|
|
331
|
+
},
|
|
332
|
+
"MiniMax-M2.5": {
|
|
333
|
+
"id": "MiniMax-M2.5",
|
|
334
|
+
"name": "MiniMax-M2.5",
|
|
335
|
+
"family": "minimax",
|
|
336
|
+
"reasoning": true,
|
|
337
|
+
"reasoning_options": [],
|
|
338
|
+
"temperature": true,
|
|
339
|
+
"tool_call": true,
|
|
340
|
+
"attachment": false,
|
|
341
|
+
"modalities": {
|
|
342
|
+
"input": ["text"],
|
|
343
|
+
"output": ["text"]
|
|
344
|
+
},
|
|
345
|
+
"limit": {
|
|
346
|
+
"context": 204800,
|
|
347
|
+
"output": 131072
|
|
348
|
+
},
|
|
349
|
+
"release_date": "2026-02-12"
|
|
350
|
+
},
|
|
351
|
+
"MiniMax-M2.5-highspeed": {
|
|
352
|
+
"id": "MiniMax-M2.5-highspeed",
|
|
353
|
+
"name": "MiniMax-M2.5-highspeed",
|
|
354
|
+
"family": "minimax",
|
|
355
|
+
"reasoning": true,
|
|
356
|
+
"reasoning_options": [],
|
|
357
|
+
"temperature": true,
|
|
358
|
+
"tool_call": true,
|
|
359
|
+
"attachment": false,
|
|
360
|
+
"modalities": {
|
|
361
|
+
"input": ["text"],
|
|
362
|
+
"output": ["text"]
|
|
363
|
+
},
|
|
364
|
+
"limit": {
|
|
365
|
+
"context": 204800,
|
|
366
|
+
"output": 131072
|
|
367
|
+
},
|
|
368
|
+
"release_date": "2026-02-13"
|
|
369
|
+
},
|
|
370
|
+
"MiniMax-M2.7": {
|
|
371
|
+
"id": "MiniMax-M2.7",
|
|
372
|
+
"name": "MiniMax-M2.7",
|
|
373
|
+
"family": "minimax",
|
|
374
|
+
"reasoning": true,
|
|
375
|
+
"reasoning_options": [],
|
|
376
|
+
"temperature": true,
|
|
377
|
+
"tool_call": true,
|
|
378
|
+
"attachment": false,
|
|
379
|
+
"modalities": {
|
|
380
|
+
"input": ["text"],
|
|
381
|
+
"output": ["text"]
|
|
382
|
+
},
|
|
383
|
+
"limit": {
|
|
384
|
+
"context": 204800,
|
|
385
|
+
"output": 131072
|
|
386
|
+
},
|
|
387
|
+
"release_date": "2026-03-18"
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
},
|
|
391
|
+
snapshotAt: Date.parse("2026-11-18")
|
|
392
|
+
};
|
|
393
|
+
//#endregion
|
|
394
|
+
//#region src/facts.ts
|
|
395
|
+
const outputLimit = {
|
|
396
|
+
ordinary: 16384,
|
|
397
|
+
thinking: 32768
|
|
398
|
+
};
|
|
399
|
+
const modelFacts = {
|
|
400
|
+
revisions: ["MiniMax-M3", "MiniMax-M3.1-Flash"].map((model) => ({
|
|
401
|
+
protocolId: "openai-responses",
|
|
402
|
+
model,
|
|
403
|
+
field: "limit.output",
|
|
404
|
+
value: { unknown: true },
|
|
405
|
+
corrects: { structural: "MiniMax Responses declares no output maximum; models.dev keeps one per model" },
|
|
406
|
+
source: "https://platform.minimax.io/docs/api-reference/responses-create",
|
|
407
|
+
verifiedAt: "2026-10-29"
|
|
408
|
+
})),
|
|
409
|
+
presets: ["MiniMax-M3", "MiniMax-M3.1-Flash"].map((model) => ({
|
|
410
|
+
model,
|
|
411
|
+
entry: { outputLimit }
|
|
412
|
+
}))
|
|
413
|
+
};
|
|
414
|
+
//#endregion
|
|
415
|
+
//#region src/resources.ts
|
|
416
|
+
function failure(detail) {
|
|
417
|
+
const code = detail === "Resource request failed" ? "source-failed" : "invalid-response";
|
|
418
|
+
return Object.assign(new Error(code), {
|
|
419
|
+
name: "ProviderResourceFailure",
|
|
420
|
+
code,
|
|
421
|
+
retryable: false
|
|
422
|
+
});
|
|
423
|
+
}
|
|
424
|
+
const labels = (en, zh) => ({
|
|
425
|
+
"en-US": en,
|
|
426
|
+
"zh-CN": zh
|
|
427
|
+
});
|
|
428
|
+
function object(value) {
|
|
429
|
+
if (!value || typeof value !== "object" || Array.isArray(value)) throw failure("Invalid resource response");
|
|
430
|
+
return value;
|
|
431
|
+
}
|
|
432
|
+
function balance(body, domestic) {
|
|
433
|
+
if (!("available_amount" in body)) throw failure("Invalid resource response");
|
|
434
|
+
const resources = [];
|
|
435
|
+
for (const [field, id, en, zh] of [
|
|
436
|
+
[
|
|
437
|
+
"available_amount",
|
|
438
|
+
"available-balance",
|
|
439
|
+
"Available balance",
|
|
440
|
+
"\u53ef\u7528\u4f59\u989d"
|
|
441
|
+
],
|
|
442
|
+
[
|
|
443
|
+
"cash_balance",
|
|
444
|
+
"cash-balance",
|
|
445
|
+
"Cash balance",
|
|
446
|
+
"\u73b0\u91d1\u4f59\u989d"
|
|
447
|
+
],
|
|
448
|
+
[
|
|
449
|
+
"voucher_balance",
|
|
450
|
+
"voucher-balance",
|
|
451
|
+
"Voucher balance",
|
|
452
|
+
"\u4ee3\u91d1\u5238\u4f59\u989d"
|
|
453
|
+
]
|
|
454
|
+
]) {
|
|
455
|
+
const value = body[field];
|
|
456
|
+
if (value === void 0) continue;
|
|
457
|
+
if (typeof value !== "string" || !/^-?(0|[1-9]\d*)(\.\d+)?$/.test(value)) throw failure("Invalid resource amount");
|
|
458
|
+
resources.push({
|
|
459
|
+
kind: "balance",
|
|
460
|
+
id,
|
|
461
|
+
group: id === "available-balance" ? "available-balance" : "balance-components",
|
|
462
|
+
labels: labels(en, zh),
|
|
463
|
+
valueOrigin: "reported",
|
|
464
|
+
meaning: value.startsWith("-") || /^0(?:\.0+)?$/.test(value) ? "exhausted" : "available",
|
|
465
|
+
remaining: {
|
|
466
|
+
value: value.includes(".") ? value.replace(/0+$/, "").replace(/\.$/, "").replace(/^-0$/, "0") : value.replace(/^-0$/, "0"),
|
|
467
|
+
unit: domestic ? {
|
|
468
|
+
kind: "currency",
|
|
469
|
+
code: "CNY"
|
|
470
|
+
} : {
|
|
471
|
+
kind: "unknown",
|
|
472
|
+
label: "Unverified account balance unit"
|
|
473
|
+
}
|
|
474
|
+
},
|
|
475
|
+
...id !== "available-balance" ? { relationships: [{
|
|
476
|
+
kind: "part-of",
|
|
477
|
+
resourceId: "available-balance"
|
|
478
|
+
}] } : {}
|
|
479
|
+
});
|
|
480
|
+
}
|
|
481
|
+
return {
|
|
482
|
+
kind: "ready",
|
|
483
|
+
resources
|
|
484
|
+
};
|
|
485
|
+
}
|
|
486
|
+
function resourceCapability(domestic) {
|
|
487
|
+
const origin = domestic ? "https://api.minimaxi.com" : "https://api.minimax.io";
|
|
488
|
+
const origins = domestic ? [origin, "https://api.minimax.cn"] : [origin];
|
|
489
|
+
return {
|
|
490
|
+
support: "supported",
|
|
491
|
+
applicability: {
|
|
492
|
+
kind: "base-url",
|
|
493
|
+
defaultBaseUrl: `${origin}/anthropic/v1`,
|
|
494
|
+
allowedBaseUrls: origins.flatMap((one) => [`${one}/anthropic/v1`, `${one}/v1`])
|
|
495
|
+
},
|
|
496
|
+
sources: [{
|
|
497
|
+
id: "account",
|
|
498
|
+
labels: labels("Account resources", "\u8d26\u6237\u8d44\u6e90"),
|
|
499
|
+
optional: false,
|
|
500
|
+
allowedHeaderNames: ["Authorization"],
|
|
501
|
+
requests: [{
|
|
502
|
+
id: "quota",
|
|
503
|
+
method: "GET",
|
|
504
|
+
url: `${origin}/v1/token_plan/remains`
|
|
505
|
+
}, {
|
|
506
|
+
id: "balance",
|
|
507
|
+
method: "GET",
|
|
508
|
+
url: `${domestic ? "https://api.minimax.cn" : origin}/account/query_balance`
|
|
509
|
+
}]
|
|
510
|
+
}],
|
|
511
|
+
presets: [{
|
|
512
|
+
id: "subscription",
|
|
513
|
+
labels: labels("Subscription", "\u8ba2\u9605\u989d\u5ea6"),
|
|
514
|
+
sourceId: "account",
|
|
515
|
+
order: 0,
|
|
516
|
+
recommended: true,
|
|
517
|
+
format: "quota-windows",
|
|
518
|
+
match: { group: "subscription-windows" }
|
|
519
|
+
}, {
|
|
520
|
+
id: "available-balance",
|
|
521
|
+
labels: labels("Available balance", "\u53ef\u7528\u4f59\u989d"),
|
|
522
|
+
sourceId: "account",
|
|
523
|
+
order: 1,
|
|
524
|
+
recommended: true,
|
|
525
|
+
format: "amount",
|
|
526
|
+
match: { resourceIds: ["available-balance"] }
|
|
527
|
+
}]
|
|
528
|
+
};
|
|
529
|
+
}
|
|
530
|
+
async function readResourceSource(input) {
|
|
531
|
+
if (input.sourceId !== "account" || !["minimax-cn", "minimax"].includes(input.endpointId)) throw failure("Invalid resource source");
|
|
532
|
+
const key = input.secrets.apiKey;
|
|
533
|
+
if (!key) return {
|
|
534
|
+
kind: "unavailable",
|
|
535
|
+
reason: "auth-required"
|
|
536
|
+
};
|
|
537
|
+
const requestId = key.startsWith("sk-api-") ? "balance" : "quota";
|
|
538
|
+
const response = await input.queryJSON({
|
|
539
|
+
requestId,
|
|
540
|
+
headers: { Authorization: `Bearer ${key}` }
|
|
541
|
+
});
|
|
542
|
+
if (response.status === 401) return {
|
|
543
|
+
kind: "unavailable",
|
|
544
|
+
reason: "auth-required"
|
|
545
|
+
};
|
|
546
|
+
if (response.status === 403) return {
|
|
547
|
+
kind: "unavailable",
|
|
548
|
+
reason: "permission-denied"
|
|
549
|
+
};
|
|
550
|
+
if (response.status !== 200) throw failure("Resource request failed");
|
|
551
|
+
const body = object(response.body);
|
|
552
|
+
if (body.base_resp !== void 0 && object(body.base_resp).status_code !== 0) throw failure("Resource request failed");
|
|
553
|
+
if (requestId === "balance") return balance(body, input.endpointId === "minimax-cn");
|
|
554
|
+
if (!Array.isArray(body.model_remains)) throw failure("Invalid resource response");
|
|
555
|
+
const resources = [];
|
|
556
|
+
for (const raw of body.model_remains) {
|
|
557
|
+
const row = object(raw);
|
|
558
|
+
const name = row.model_name;
|
|
559
|
+
if (typeof name !== "string" || !/^[a-zA-Z0-9_-]{1,80}$/.test(name)) throw failure("Invalid resource scope");
|
|
560
|
+
for (const period of ["interval", "weekly"]) {
|
|
561
|
+
let percent = row[`current_${period}_remaining_percent`];
|
|
562
|
+
const boost = period === "weekly" ? row.weekly_boost_permille : void 0;
|
|
563
|
+
if (boost !== void 0 && (typeof boost !== "number" || !Number.isSafeInteger(boost) || boost <= 0)) throw failure("Invalid resource boost");
|
|
564
|
+
if (typeof percent === "number" && typeof boost === "number") percent = percent * boost / 1e3;
|
|
565
|
+
const status = row[`current_${period}_status`];
|
|
566
|
+
if (percent === void 0 && status === void 0) continue;
|
|
567
|
+
if (percent !== void 0 && (typeof percent !== "number" || !Number.isFinite(percent) || percent < 0)) throw failure("Invalid resource percentage");
|
|
568
|
+
const start = row[period === "interval" ? "start_time" : "weekly_start_time"];
|
|
569
|
+
const end = row[period === "interval" ? "end_time" : "weekly_end_time"];
|
|
570
|
+
const duration = typeof start === "number" && typeof end === "number" ? (end - start) / 1e3 : void 0;
|
|
571
|
+
const fixed = typeof end === "number" && Number.isFinite(end) && (period === "weekly" || typeof percent === "number" && percent < 100);
|
|
572
|
+
resources.push({
|
|
573
|
+
kind: "quota",
|
|
574
|
+
id: `${name}-${period}`,
|
|
575
|
+
group: "subscription-windows",
|
|
576
|
+
labels: name === "video" ? labels("Video quota", "\u89c6\u9891\u989d\u5ea6") : labels("Subscription quota", "\u8ba2\u9605\u989d\u5ea6"),
|
|
577
|
+
...name === "general" ? {} : { scope: { models: [name] } },
|
|
578
|
+
valueOrigin: boost === void 0 ? "reported" : "derived",
|
|
579
|
+
meaning: status === 3 ? "unlimited" : status === 2 || percent === 0 ? "exhausted" : percent === void 0 ? "unknown" : "available",
|
|
580
|
+
window: {
|
|
581
|
+
...duration !== void 0 && Number.isSafeInteger(duration) && duration > 0 ? { durationSeconds: duration } : {},
|
|
582
|
+
reset: fixed ? {
|
|
583
|
+
kind: "fixed",
|
|
584
|
+
at: new Date(end).toISOString()
|
|
585
|
+
} : period === "interval" && percent === 100 ? { kind: "rolling" } : { kind: "unknown" }
|
|
586
|
+
},
|
|
587
|
+
...typeof percent === "number" ? {
|
|
588
|
+
remainingPercent: percent,
|
|
589
|
+
...percent > 100 ? { percentBasis: {
|
|
590
|
+
kind: "expanded",
|
|
591
|
+
note: labels("Reported expanded subscription limit", "\u4e0a\u6e38\u6269\u5bb9\u8ba2\u9605\u57fa\u51c6")
|
|
592
|
+
} } : {}
|
|
593
|
+
} : {}
|
|
594
|
+
});
|
|
595
|
+
}
|
|
596
|
+
}
|
|
597
|
+
return {
|
|
598
|
+
kind: "ready",
|
|
599
|
+
resources
|
|
600
|
+
};
|
|
601
|
+
}
|
|
602
|
+
//#endregion
|
|
603
|
+
//#region src/routing.ts
|
|
604
|
+
function connectionConfig(endpoint, protocolId, config, aliases = []) {
|
|
605
|
+
const defaults = Object.values(endpoint.capabilities).find((one) => one.protocolIds.includes(protocolId))?.protocolDefaults?.[protocolId] ?? {};
|
|
606
|
+
const configured = config.baseUrl;
|
|
607
|
+
const canonical = [
|
|
608
|
+
endpoint.defaults?.baseUrl,
|
|
609
|
+
...Object.values(endpoint.capabilities).flatMap((one) => Object.values(one.protocolDefaults ?? {}).map((value) => value.baseUrl)),
|
|
610
|
+
...aliases
|
|
611
|
+
].filter((value) => typeof value === "string");
|
|
612
|
+
const isOfficial = configured === void 0 || typeof configured === "string" && canonical.some((value) => value.replace(/\/+$/, "") === configured.replace(/\/+$/, ""));
|
|
613
|
+
const selected = defaults.baseUrl ?? endpoint.defaults?.baseUrl;
|
|
614
|
+
return {
|
|
615
|
+
...endpoint.defaults,
|
|
616
|
+
...defaults,
|
|
617
|
+
...config,
|
|
618
|
+
...isOfficial && selected !== void 0 ? { baseUrl: selected } : {}
|
|
619
|
+
};
|
|
620
|
+
}
|
|
621
|
+
//#endregion
|
|
622
|
+
//#region src/type.ts
|
|
623
|
+
const TYPE = "minimax";
|
|
624
|
+
const endpoints = [{
|
|
625
|
+
id: "minimax-cn",
|
|
626
|
+
resourceCapability: resourceCapability(true),
|
|
627
|
+
label: "MiniMax \u00b7 \u56fd\u5185",
|
|
628
|
+
capabilities: { chat: {
|
|
629
|
+
protocolIds: [
|
|
630
|
+
"anthropic",
|
|
631
|
+
"openai",
|
|
632
|
+
"openai-responses"
|
|
633
|
+
],
|
|
634
|
+
defaultProtocolId: "anthropic",
|
|
635
|
+
protocolDefaults: {
|
|
636
|
+
openai: { baseUrl: "https://api.minimax.cn/v1" },
|
|
637
|
+
"openai-responses": { baseUrl: "https://api.minimax.cn/v1" }
|
|
638
|
+
},
|
|
639
|
+
listingVia: {
|
|
640
|
+
endpointId: "minimax-cn",
|
|
641
|
+
protocolId: "openai"
|
|
642
|
+
}
|
|
643
|
+
} },
|
|
644
|
+
defaults: { baseUrl: "https://api.minimaxi.com/anthropic/v1" },
|
|
645
|
+
credentialGroup: "minimax"
|
|
646
|
+
}, {
|
|
647
|
+
id: "minimax",
|
|
648
|
+
resourceCapability: resourceCapability(false),
|
|
649
|
+
label: "MiniMax \u00b7 \u56fd\u9645",
|
|
650
|
+
capabilities: { chat: {
|
|
651
|
+
protocolIds: [
|
|
652
|
+
"anthropic",
|
|
653
|
+
"openai",
|
|
654
|
+
"openai-responses"
|
|
655
|
+
],
|
|
656
|
+
defaultProtocolId: "anthropic",
|
|
657
|
+
protocolDefaults: {
|
|
658
|
+
openai: { baseUrl: "https://api.minimax.io/v1" },
|
|
659
|
+
"openai-responses": { baseUrl: "https://api.minimax.io/v1" }
|
|
660
|
+
},
|
|
661
|
+
listingVia: {
|
|
662
|
+
endpointId: "minimax",
|
|
663
|
+
protocolId: "openai"
|
|
664
|
+
}
|
|
665
|
+
} },
|
|
666
|
+
defaults: { baseUrl: "https://api.minimax.io/anthropic/v1" },
|
|
667
|
+
credentialGroup: "minimax"
|
|
668
|
+
}];
|
|
669
|
+
const protocolOptions = {
|
|
670
|
+
anthropic: {
|
|
671
|
+
reasoningReplay: "unsigned-thinking",
|
|
672
|
+
effortCache: false,
|
|
673
|
+
cacheBreakpoints: false,
|
|
674
|
+
thinkingEffort: true,
|
|
675
|
+
thinkingBeta: false,
|
|
676
|
+
thinkingMode: "adaptive",
|
|
677
|
+
thinkingSummary: false
|
|
678
|
+
},
|
|
679
|
+
"openai-responses": {
|
|
680
|
+
reasoningReplay: "reasoning-content",
|
|
681
|
+
thinkingOnEffort: "medium",
|
|
682
|
+
reasoningSummary: false,
|
|
683
|
+
effortCache: false,
|
|
684
|
+
promptCacheKey: true
|
|
685
|
+
},
|
|
686
|
+
openai: { reasoningReplay: "reasoning-content" }
|
|
687
|
+
};
|
|
688
|
+
function minimaxProviderType(support) {
|
|
689
|
+
return {
|
|
690
|
+
type: TYPE,
|
|
691
|
+
listingContractVersion: "capacity-listing-v1",
|
|
692
|
+
modelFacts,
|
|
693
|
+
label: "MiniMax",
|
|
694
|
+
fields: [{
|
|
695
|
+
key: "apiKey",
|
|
696
|
+
kind: "secret",
|
|
697
|
+
label: "API Key",
|
|
698
|
+
required: true
|
|
699
|
+
}],
|
|
700
|
+
endpoints,
|
|
701
|
+
readResourceSource,
|
|
702
|
+
catalog: support ? {
|
|
703
|
+
...catalog,
|
|
704
|
+
source: support.catalogueSource("https://models.dev/api.json", "models")
|
|
705
|
+
} : catalog,
|
|
706
|
+
prepareConnection(input) {
|
|
707
|
+
const endpoint = endpoints.find((one) => one.id === input.endpointId);
|
|
708
|
+
if (!endpoint || !Object.values(endpoint.capabilities).some((one) => one.protocolIds.includes(input.protocolId))) throw new Error("unsupported supplier endpoint or protocol");
|
|
709
|
+
return {
|
|
710
|
+
config: connectionConfig(endpoint, input.protocolId, input.config),
|
|
711
|
+
options: protocolOptions[input.protocolId] ?? {}
|
|
712
|
+
};
|
|
713
|
+
}
|
|
714
|
+
};
|
|
715
|
+
}
|
|
716
|
+
//#endregion
|
|
717
|
+
//#region src/index.ts
|
|
718
|
+
const TOOL_NAMES = [];
|
|
719
|
+
const plugin = {
|
|
720
|
+
name: "@eum-agent/llm-provider-minimax",
|
|
721
|
+
requires: ["model-catalogue-sources"],
|
|
722
|
+
apply(ctx) {
|
|
723
|
+
const support = ctx.services.get("model-catalogue-sources");
|
|
724
|
+
ctx.modelProviders.register(minimaxProviderType(support));
|
|
725
|
+
}
|
|
726
|
+
};
|
|
727
|
+
//#endregion
|
|
728
|
+
export { TOOL_NAMES, plugin as default };
|
package/package.json
CHANGED
|
@@ -1,6 +1,41 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eum-agent/llm-provider-minimax",
|
|
3
|
-
"
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
"displayName": {
|
|
4
|
+
"en-US": "MiniMax Model Connection",
|
|
5
|
+
"zh-CN": "模型接入 · MiniMax"
|
|
6
|
+
},
|
|
7
|
+
"version": "1.2.0",
|
|
8
|
+
"type": "module",
|
|
9
|
+
"description": "MiniMax model provider using the registered Anthropic protocol",
|
|
10
|
+
"license": "MIT",
|
|
11
|
+
"exports": {
|
|
12
|
+
".": {
|
|
13
|
+
"default": "./dist/index.js"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"files": [
|
|
17
|
+
"dist",
|
|
18
|
+
"assets"
|
|
19
|
+
],
|
|
20
|
+
"devDependencies": {
|
|
21
|
+
"@eum-agent/plugin": "1.2.0"
|
|
22
|
+
},
|
|
23
|
+
"dependencies": {
|
|
24
|
+
"zod": "^4.4.3"
|
|
25
|
+
},
|
|
26
|
+
"yaoguang": {
|
|
27
|
+
"description": {
|
|
28
|
+
"en-US": "MiniMax model provider using the registered Anthropic protocol",
|
|
29
|
+
"zh-CN": "通过已注册的 Anthropic 协议接入 MiniMax 模型"
|
|
30
|
+
},
|
|
31
|
+
"dependencies": {
|
|
32
|
+
"@eum-agent/llm-management": "1.2.0"
|
|
33
|
+
},
|
|
34
|
+
"kind": "extension"
|
|
35
|
+
},
|
|
36
|
+
"scripts": {
|
|
37
|
+
"build": "tsdown",
|
|
38
|
+
"test": "vitest run",
|
|
39
|
+
"typecheck": "tsc --noEmit"
|
|
40
|
+
}
|
|
6
41
|
}
|
package/README.md
DELETED