@eum-agent/llm-provider-minimax 0.0.0-stage → 1.1.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 +464 -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,464 @@
|
|
|
1
|
+
//#endregion
|
|
2
|
+
//#region src/catalog.ts
|
|
3
|
+
/** Supplier-owned catalogue rows; protocol request facts belong to protocol registrations. */
|
|
4
|
+
const catalog = {
|
|
5
|
+
vendors: [{
|
|
6
|
+
kind: "vendor",
|
|
7
|
+
id: "minimax-cn",
|
|
8
|
+
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",
|
|
9
|
+
name: "MiniMax",
|
|
10
|
+
region: "国内",
|
|
11
|
+
market: "domestic",
|
|
12
|
+
catalogKey: "minimax-cn",
|
|
13
|
+
canListModels: true,
|
|
14
|
+
endpoints: [{
|
|
15
|
+
baseUrl: "https://api.minimaxi.com/anthropic/v1",
|
|
16
|
+
type: "minimax",
|
|
17
|
+
endpointId: "minimax-cn",
|
|
18
|
+
protocolIds: [
|
|
19
|
+
"anthropic",
|
|
20
|
+
"openai",
|
|
21
|
+
"openai-responses"
|
|
22
|
+
],
|
|
23
|
+
modelThinkingSwitch: true,
|
|
24
|
+
alwaysThinking: ["MiniMax-M2"]
|
|
25
|
+
}]
|
|
26
|
+
}, {
|
|
27
|
+
kind: "vendor",
|
|
28
|
+
id: "minimax",
|
|
29
|
+
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",
|
|
30
|
+
name: "MiniMax",
|
|
31
|
+
region: "国际",
|
|
32
|
+
market: "international",
|
|
33
|
+
catalogKey: "minimax",
|
|
34
|
+
canListModels: true,
|
|
35
|
+
endpoints: [{
|
|
36
|
+
baseUrl: "https://api.minimax.io/anthropic/v1",
|
|
37
|
+
type: "minimax",
|
|
38
|
+
endpointId: "minimax",
|
|
39
|
+
protocolIds: [
|
|
40
|
+
"anthropic",
|
|
41
|
+
"openai",
|
|
42
|
+
"openai-responses"
|
|
43
|
+
],
|
|
44
|
+
modelThinkingSwitch: true,
|
|
45
|
+
alwaysThinking: ["MiniMax-M2"]
|
|
46
|
+
}]
|
|
47
|
+
}],
|
|
48
|
+
snapshot: {
|
|
49
|
+
"minimax-cn": {
|
|
50
|
+
"MiniMax-M2": {
|
|
51
|
+
"id": "MiniMax-M2",
|
|
52
|
+
"name": "MiniMax-M2",
|
|
53
|
+
"family": "minimax",
|
|
54
|
+
"reasoning": true,
|
|
55
|
+
"reasoning_options": [],
|
|
56
|
+
"temperature": true,
|
|
57
|
+
"tool_call": true,
|
|
58
|
+
"attachment": false,
|
|
59
|
+
"modalities": {
|
|
60
|
+
"input": ["text"],
|
|
61
|
+
"output": ["text"]
|
|
62
|
+
},
|
|
63
|
+
"limit": {
|
|
64
|
+
"context": 204800,
|
|
65
|
+
"output": 131072
|
|
66
|
+
},
|
|
67
|
+
"release_date": "2025-10-27"
|
|
68
|
+
},
|
|
69
|
+
"MiniMax-M2.1": {
|
|
70
|
+
"id": "MiniMax-M2.1",
|
|
71
|
+
"name": "MiniMax-M2.1",
|
|
72
|
+
"family": "minimax",
|
|
73
|
+
"reasoning": true,
|
|
74
|
+
"reasoning_options": [],
|
|
75
|
+
"temperature": true,
|
|
76
|
+
"tool_call": true,
|
|
77
|
+
"attachment": false,
|
|
78
|
+
"modalities": {
|
|
79
|
+
"input": ["text"],
|
|
80
|
+
"output": ["text"]
|
|
81
|
+
},
|
|
82
|
+
"limit": {
|
|
83
|
+
"context": 204800,
|
|
84
|
+
"output": 131072
|
|
85
|
+
},
|
|
86
|
+
"release_date": "2025-12-23"
|
|
87
|
+
},
|
|
88
|
+
"MiniMax-M2.5": {
|
|
89
|
+
"id": "MiniMax-M2.5",
|
|
90
|
+
"name": "MiniMax-M2.5",
|
|
91
|
+
"family": "minimax",
|
|
92
|
+
"reasoning": true,
|
|
93
|
+
"reasoning_options": [],
|
|
94
|
+
"temperature": true,
|
|
95
|
+
"tool_call": true,
|
|
96
|
+
"attachment": false,
|
|
97
|
+
"modalities": {
|
|
98
|
+
"input": ["text"],
|
|
99
|
+
"output": ["text"]
|
|
100
|
+
},
|
|
101
|
+
"limit": {
|
|
102
|
+
"context": 204800,
|
|
103
|
+
"output": 131072
|
|
104
|
+
},
|
|
105
|
+
"release_date": "2026-02-12"
|
|
106
|
+
},
|
|
107
|
+
"MiniMax-M2.5-highspeed": {
|
|
108
|
+
"id": "MiniMax-M2.5-highspeed",
|
|
109
|
+
"name": "MiniMax-M2.5-highspeed",
|
|
110
|
+
"family": "minimax",
|
|
111
|
+
"reasoning": true,
|
|
112
|
+
"reasoning_options": [],
|
|
113
|
+
"temperature": true,
|
|
114
|
+
"tool_call": true,
|
|
115
|
+
"attachment": false,
|
|
116
|
+
"modalities": {
|
|
117
|
+
"input": ["text"],
|
|
118
|
+
"output": ["text"]
|
|
119
|
+
},
|
|
120
|
+
"limit": {
|
|
121
|
+
"context": 204800,
|
|
122
|
+
"output": 131072
|
|
123
|
+
},
|
|
124
|
+
"release_date": "2026-02-13"
|
|
125
|
+
},
|
|
126
|
+
"MiniMax-M3": {
|
|
127
|
+
"id": "MiniMax-M3",
|
|
128
|
+
"name": "MiniMax-M3",
|
|
129
|
+
"family": "minimax",
|
|
130
|
+
"reasoning": true,
|
|
131
|
+
"reasoning_options": [{ "type": "toggle" }],
|
|
132
|
+
"temperature": true,
|
|
133
|
+
"tool_call": true,
|
|
134
|
+
"attachment": true,
|
|
135
|
+
"modalities": {
|
|
136
|
+
"input": [
|
|
137
|
+
"text",
|
|
138
|
+
"image",
|
|
139
|
+
"video"
|
|
140
|
+
],
|
|
141
|
+
"output": ["text"]
|
|
142
|
+
},
|
|
143
|
+
"limit": {
|
|
144
|
+
"context": 1048576,
|
|
145
|
+
"output": 512e3
|
|
146
|
+
},
|
|
147
|
+
"release_date": "2026-06-01"
|
|
148
|
+
},
|
|
149
|
+
"MiniMax-M2.7-highspeed": {
|
|
150
|
+
"id": "MiniMax-M2.7-highspeed",
|
|
151
|
+
"name": "MiniMax-M2.7-highspeed",
|
|
152
|
+
"family": "minimax",
|
|
153
|
+
"reasoning": true,
|
|
154
|
+
"reasoning_options": [],
|
|
155
|
+
"temperature": true,
|
|
156
|
+
"tool_call": true,
|
|
157
|
+
"attachment": false,
|
|
158
|
+
"modalities": {
|
|
159
|
+
"input": ["text"],
|
|
160
|
+
"output": ["text"]
|
|
161
|
+
},
|
|
162
|
+
"limit": {
|
|
163
|
+
"context": 204800,
|
|
164
|
+
"output": 131072
|
|
165
|
+
},
|
|
166
|
+
"release_date": "2026-03-18"
|
|
167
|
+
},
|
|
168
|
+
"MiniMax-M2.7": {
|
|
169
|
+
"id": "MiniMax-M2.7",
|
|
170
|
+
"name": "MiniMax-M2.7",
|
|
171
|
+
"family": "minimax",
|
|
172
|
+
"reasoning": true,
|
|
173
|
+
"reasoning_options": [],
|
|
174
|
+
"temperature": true,
|
|
175
|
+
"tool_call": true,
|
|
176
|
+
"attachment": false,
|
|
177
|
+
"modalities": {
|
|
178
|
+
"input": ["text"],
|
|
179
|
+
"output": ["text"]
|
|
180
|
+
},
|
|
181
|
+
"limit": {
|
|
182
|
+
"context": 204800,
|
|
183
|
+
"output": 131072
|
|
184
|
+
},
|
|
185
|
+
"release_date": "2026-03-18"
|
|
186
|
+
}
|
|
187
|
+
},
|
|
188
|
+
"minimax": {
|
|
189
|
+
"MiniMax-M2": {
|
|
190
|
+
"id": "MiniMax-M2",
|
|
191
|
+
"name": "MiniMax-M2",
|
|
192
|
+
"family": "minimax",
|
|
193
|
+
"reasoning": true,
|
|
194
|
+
"reasoning_options": [],
|
|
195
|
+
"temperature": true,
|
|
196
|
+
"tool_call": true,
|
|
197
|
+
"attachment": false,
|
|
198
|
+
"modalities": {
|
|
199
|
+
"input": ["text"],
|
|
200
|
+
"output": ["text"]
|
|
201
|
+
},
|
|
202
|
+
"limit": {
|
|
203
|
+
"context": 204800,
|
|
204
|
+
"output": 131072
|
|
205
|
+
},
|
|
206
|
+
"release_date": "2025-10-27"
|
|
207
|
+
},
|
|
208
|
+
"MiniMax-M2.1": {
|
|
209
|
+
"id": "MiniMax-M2.1",
|
|
210
|
+
"name": "MiniMax-M2.1",
|
|
211
|
+
"family": "minimax",
|
|
212
|
+
"reasoning": true,
|
|
213
|
+
"reasoning_options": [],
|
|
214
|
+
"temperature": true,
|
|
215
|
+
"tool_call": true,
|
|
216
|
+
"attachment": false,
|
|
217
|
+
"modalities": {
|
|
218
|
+
"input": ["text"],
|
|
219
|
+
"output": ["text"]
|
|
220
|
+
},
|
|
221
|
+
"limit": {
|
|
222
|
+
"context": 204800,
|
|
223
|
+
"output": 131072
|
|
224
|
+
},
|
|
225
|
+
"release_date": "2025-12-23"
|
|
226
|
+
},
|
|
227
|
+
"MiniMax-M2.5": {
|
|
228
|
+
"id": "MiniMax-M2.5",
|
|
229
|
+
"name": "MiniMax-M2.5",
|
|
230
|
+
"family": "minimax",
|
|
231
|
+
"reasoning": true,
|
|
232
|
+
"reasoning_options": [],
|
|
233
|
+
"temperature": true,
|
|
234
|
+
"tool_call": true,
|
|
235
|
+
"attachment": false,
|
|
236
|
+
"modalities": {
|
|
237
|
+
"input": ["text"],
|
|
238
|
+
"output": ["text"]
|
|
239
|
+
},
|
|
240
|
+
"limit": {
|
|
241
|
+
"context": 204800,
|
|
242
|
+
"output": 131072
|
|
243
|
+
},
|
|
244
|
+
"release_date": "2026-02-12"
|
|
245
|
+
},
|
|
246
|
+
"MiniMax-M2.5-highspeed": {
|
|
247
|
+
"id": "MiniMax-M2.5-highspeed",
|
|
248
|
+
"name": "MiniMax-M2.5-highspeed",
|
|
249
|
+
"family": "minimax",
|
|
250
|
+
"reasoning": true,
|
|
251
|
+
"reasoning_options": [],
|
|
252
|
+
"temperature": true,
|
|
253
|
+
"tool_call": true,
|
|
254
|
+
"attachment": false,
|
|
255
|
+
"modalities": {
|
|
256
|
+
"input": ["text"],
|
|
257
|
+
"output": ["text"]
|
|
258
|
+
},
|
|
259
|
+
"limit": {
|
|
260
|
+
"context": 204800,
|
|
261
|
+
"output": 131072
|
|
262
|
+
},
|
|
263
|
+
"release_date": "2026-02-13"
|
|
264
|
+
},
|
|
265
|
+
"MiniMax-M3": {
|
|
266
|
+
"id": "MiniMax-M3",
|
|
267
|
+
"name": "MiniMax-M3",
|
|
268
|
+
"family": "minimax",
|
|
269
|
+
"reasoning": true,
|
|
270
|
+
"reasoning_options": [{ "type": "toggle" }],
|
|
271
|
+
"temperature": true,
|
|
272
|
+
"tool_call": true,
|
|
273
|
+
"attachment": true,
|
|
274
|
+
"modalities": {
|
|
275
|
+
"input": [
|
|
276
|
+
"text",
|
|
277
|
+
"image",
|
|
278
|
+
"video"
|
|
279
|
+
],
|
|
280
|
+
"output": ["text"]
|
|
281
|
+
},
|
|
282
|
+
"limit": {
|
|
283
|
+
"context": 1048576,
|
|
284
|
+
"output": 512e3
|
|
285
|
+
},
|
|
286
|
+
"release_date": "2026-06-01"
|
|
287
|
+
},
|
|
288
|
+
"MiniMax-M2.7-highspeed": {
|
|
289
|
+
"id": "MiniMax-M2.7-highspeed",
|
|
290
|
+
"name": "MiniMax-M2.7-highspeed",
|
|
291
|
+
"family": "minimax",
|
|
292
|
+
"reasoning": true,
|
|
293
|
+
"reasoning_options": [],
|
|
294
|
+
"temperature": true,
|
|
295
|
+
"tool_call": true,
|
|
296
|
+
"attachment": false,
|
|
297
|
+
"modalities": {
|
|
298
|
+
"input": ["text"],
|
|
299
|
+
"output": ["text"]
|
|
300
|
+
},
|
|
301
|
+
"limit": {
|
|
302
|
+
"context": 204800,
|
|
303
|
+
"output": 131072
|
|
304
|
+
},
|
|
305
|
+
"release_date": "2026-03-18"
|
|
306
|
+
},
|
|
307
|
+
"MiniMax-M2.7": {
|
|
308
|
+
"id": "MiniMax-M2.7",
|
|
309
|
+
"name": "MiniMax-M2.7",
|
|
310
|
+
"family": "minimax",
|
|
311
|
+
"reasoning": true,
|
|
312
|
+
"reasoning_options": [],
|
|
313
|
+
"temperature": true,
|
|
314
|
+
"tool_call": true,
|
|
315
|
+
"attachment": false,
|
|
316
|
+
"modalities": {
|
|
317
|
+
"input": ["text"],
|
|
318
|
+
"output": ["text"]
|
|
319
|
+
},
|
|
320
|
+
"limit": {
|
|
321
|
+
"context": 204800,
|
|
322
|
+
"output": 131072
|
|
323
|
+
},
|
|
324
|
+
"release_date": "2026-03-18"
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
},
|
|
328
|
+
snapshotAt: Date.parse("2026-09-17")
|
|
329
|
+
};
|
|
330
|
+
//#endregion
|
|
331
|
+
//#region src/routing.ts
|
|
332
|
+
/** Maps only declared official roots; protocol implementations own the remaining resource URI. */
|
|
333
|
+
function connectionConfig(endpoint, protocolId, config, aliases = []) {
|
|
334
|
+
const defaults = Object.values(endpoint.capabilities).find((one) => one.protocolIds.includes(protocolId))?.protocolDefaults?.[protocolId] ?? {};
|
|
335
|
+
const configured = config.baseUrl;
|
|
336
|
+
const canonical = [
|
|
337
|
+
endpoint.defaults?.baseUrl,
|
|
338
|
+
...Object.values(endpoint.capabilities).flatMap((one) => Object.values(one.protocolDefaults ?? {}).map((value) => value.baseUrl)),
|
|
339
|
+
...aliases
|
|
340
|
+
].filter((value) => typeof value === "string");
|
|
341
|
+
const isOfficial = configured === void 0 || typeof configured === "string" && canonical.some((value) => value.replace(/\/+$/, "") === configured.replace(/\/+$/, ""));
|
|
342
|
+
const selected = defaults.baseUrl ?? endpoint.defaults?.baseUrl;
|
|
343
|
+
return {
|
|
344
|
+
...endpoint.defaults,
|
|
345
|
+
...defaults,
|
|
346
|
+
...config,
|
|
347
|
+
...isOfficial && selected !== void 0 ? { baseUrl: selected } : {}
|
|
348
|
+
};
|
|
349
|
+
}
|
|
350
|
+
//#endregion
|
|
351
|
+
//#region src/type.ts
|
|
352
|
+
/** Stable supplier registration identity. */
|
|
353
|
+
const TYPE = "minimax";
|
|
354
|
+
const endpoints = [{
|
|
355
|
+
id: "minimax-cn",
|
|
356
|
+
label: "MiniMax · 国内",
|
|
357
|
+
capabilities: { chat: {
|
|
358
|
+
protocolIds: [
|
|
359
|
+
"anthropic",
|
|
360
|
+
"openai",
|
|
361
|
+
"openai-responses"
|
|
362
|
+
],
|
|
363
|
+
defaultProtocolId: "anthropic",
|
|
364
|
+
protocolDefaults: {
|
|
365
|
+
openai: { baseUrl: "https://api.minimax.cn/v1" },
|
|
366
|
+
"openai-responses": { baseUrl: "https://api.minimax.cn/v1" }
|
|
367
|
+
},
|
|
368
|
+
listingVia: {
|
|
369
|
+
endpointId: "minimax-cn",
|
|
370
|
+
protocolId: "openai"
|
|
371
|
+
}
|
|
372
|
+
} },
|
|
373
|
+
defaults: { baseUrl: "https://api.minimaxi.com/anthropic/v1" },
|
|
374
|
+
credentialGroup: "minimax"
|
|
375
|
+
}, {
|
|
376
|
+
id: "minimax",
|
|
377
|
+
label: "MiniMax · 国际",
|
|
378
|
+
capabilities: { chat: {
|
|
379
|
+
protocolIds: [
|
|
380
|
+
"anthropic",
|
|
381
|
+
"openai",
|
|
382
|
+
"openai-responses"
|
|
383
|
+
],
|
|
384
|
+
defaultProtocolId: "anthropic",
|
|
385
|
+
protocolDefaults: {
|
|
386
|
+
openai: { baseUrl: "https://api.minimax.io/v1" },
|
|
387
|
+
"openai-responses": { baseUrl: "https://api.minimax.io/v1" }
|
|
388
|
+
},
|
|
389
|
+
listingVia: {
|
|
390
|
+
endpointId: "minimax",
|
|
391
|
+
protocolId: "openai"
|
|
392
|
+
}
|
|
393
|
+
} },
|
|
394
|
+
defaults: { baseUrl: "https://api.minimax.io/anthropic/v1" },
|
|
395
|
+
credentialGroup: "minimax"
|
|
396
|
+
}];
|
|
397
|
+
const protocolOptions = {
|
|
398
|
+
anthropic: {
|
|
399
|
+
reasoningReplay: "unsigned-thinking",
|
|
400
|
+
effortCache: false,
|
|
401
|
+
cacheBreakpoints: false,
|
|
402
|
+
thinkingEffort: true,
|
|
403
|
+
thinkingBeta: false,
|
|
404
|
+
thinkingMode: "adaptive",
|
|
405
|
+
thinkingSummary: false
|
|
406
|
+
},
|
|
407
|
+
"openai-responses": {
|
|
408
|
+
reasoningReplay: "reasoning-content",
|
|
409
|
+
thinkingOnEffort: "medium",
|
|
410
|
+
reasoningSummary: false,
|
|
411
|
+
effortCache: false,
|
|
412
|
+
promptCacheKey: true
|
|
413
|
+
},
|
|
414
|
+
openai: { reasoningReplay: "reasoning-content" }
|
|
415
|
+
};
|
|
416
|
+
/** Builds this supplier's declaration without network activity or protocol imports. */
|
|
417
|
+
function minimaxProviderType(support) {
|
|
418
|
+
return {
|
|
419
|
+
type: TYPE,
|
|
420
|
+
label: "MiniMax",
|
|
421
|
+
fields: [{
|
|
422
|
+
key: "apiKey",
|
|
423
|
+
kind: "secret",
|
|
424
|
+
label: "API Key",
|
|
425
|
+
required: true
|
|
426
|
+
}],
|
|
427
|
+
endpoints,
|
|
428
|
+
catalog: support ? {
|
|
429
|
+
...catalog,
|
|
430
|
+
source: support.catalogueSource("https://models.dev/api.json", "models")
|
|
431
|
+
} : catalog,
|
|
432
|
+
describeModel({ model }) {
|
|
433
|
+
return Object.values(catalog.snapshot).some((row) => Object.hasOwn(row, model)) ? {
|
|
434
|
+
id: model,
|
|
435
|
+
outputLimit: {
|
|
436
|
+
ordinary: 16384,
|
|
437
|
+
thinking: 32768
|
|
438
|
+
}
|
|
439
|
+
} : void 0;
|
|
440
|
+
},
|
|
441
|
+
prepareConnection(input) {
|
|
442
|
+
const endpoint = endpoints.find((one) => one.id === input.endpointId);
|
|
443
|
+
if (!endpoint || !Object.values(endpoint.capabilities).some((one) => one.protocolIds.includes(input.protocolId))) throw new Error("unsupported supplier endpoint or protocol");
|
|
444
|
+
return {
|
|
445
|
+
config: connectionConfig(endpoint, input.protocolId, input.config),
|
|
446
|
+
options: protocolOptions[input.protocolId] ?? {}
|
|
447
|
+
};
|
|
448
|
+
}
|
|
449
|
+
};
|
|
450
|
+
}
|
|
451
|
+
//#endregion
|
|
452
|
+
//#region src/index.ts
|
|
453
|
+
/** Suppliers contribute no tools. */
|
|
454
|
+
const TOOL_NAMES = [];
|
|
455
|
+
const plugin = {
|
|
456
|
+
name: "@eum-agent/llm-provider-minimax",
|
|
457
|
+
requires: ["model-catalogue-sources"],
|
|
458
|
+
apply(ctx) {
|
|
459
|
+
const support = ctx.services.get("model-catalogue-sources");
|
|
460
|
+
ctx.modelProviders.register(minimaxProviderType(support));
|
|
461
|
+
}
|
|
462
|
+
};
|
|
463
|
+
//#endregion
|
|
464
|
+
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.1.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.1.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.1.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