@lobehub/lobehub 2.0.0-next.322 → 2.0.0-next.323
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/CHANGELOG.md +55 -0
- package/apps/desktop/src/main/core/infrastructure/UpdaterManager.ts +9 -76
- package/apps/desktop/src/main/core/infrastructure/__tests__/UpdaterManager.test.ts +0 -1
- package/apps/desktop/src/main/modules/updater/configs.ts +0 -4
- package/changelog/v1.json +15 -0
- package/e2e/src/mocks/llm/index.ts +3 -3
- package/locales/ar/common.json +5 -0
- package/locales/ar/error.json +10 -1
- package/locales/bg-BG/common.json +5 -0
- package/locales/bg-BG/error.json +10 -1
- package/locales/de-DE/common.json +5 -0
- package/locales/de-DE/error.json +10 -1
- package/locales/en-US/common.json +5 -0
- package/locales/es-ES/common.json +5 -0
- package/locales/es-ES/error.json +10 -1
- package/locales/fa-IR/common.json +5 -0
- package/locales/fa-IR/error.json +10 -1
- package/locales/fr-FR/common.json +5 -0
- package/locales/fr-FR/error.json +10 -1
- package/locales/it-IT/common.json +5 -0
- package/locales/it-IT/error.json +10 -1
- package/locales/ja-JP/common.json +5 -0
- package/locales/ja-JP/error.json +10 -1
- package/locales/ko-KR/common.json +5 -0
- package/locales/ko-KR/error.json +10 -1
- package/locales/nl-NL/common.json +5 -0
- package/locales/nl-NL/error.json +10 -1
- package/locales/pl-PL/common.json +5 -0
- package/locales/pl-PL/error.json +10 -1
- package/locales/pt-BR/common.json +5 -0
- package/locales/pt-BR/error.json +10 -1
- package/locales/ru-RU/common.json +5 -0
- package/locales/ru-RU/error.json +10 -1
- package/locales/tr-TR/common.json +5 -0
- package/locales/tr-TR/error.json +10 -1
- package/locales/vi-VN/common.json +5 -0
- package/locales/vi-VN/error.json +10 -1
- package/locales/zh-CN/common.json +5 -0
- package/locales/zh-TW/common.json +5 -0
- package/locales/zh-TW/error.json +10 -1
- package/package.json +2 -2
- package/packages/business/const/src/branding.ts +1 -0
- package/packages/business/const/src/llm.ts +2 -1
- package/packages/const/src/settings/llm.ts +2 -1
- package/packages/const/src/settings/systemAgent.ts +12 -7
- package/packages/database/src/models/agent.ts +18 -1
- package/packages/database/src/models/chatGroup.ts +18 -1
- package/packages/database/src/types/chatGroup.ts +1 -0
- package/packages/model-bank/package.json +1 -1
- package/packages/model-bank/src/aiModels/index.ts +2 -2
- package/packages/model-bank/src/aiModels/lobehub/chat/anthropic.ts +256 -0
- package/packages/model-bank/src/aiModels/lobehub/chat/deepseek.ts +45 -0
- package/packages/model-bank/src/aiModels/lobehub/chat/google.ts +267 -0
- package/packages/model-bank/src/aiModels/lobehub/chat/index.ts +26 -0
- package/packages/model-bank/src/aiModels/lobehub/chat/minimax.ts +75 -0
- package/packages/model-bank/src/aiModels/lobehub/chat/moonshot.ts +28 -0
- package/packages/model-bank/src/aiModels/lobehub/chat/openai.ts +345 -0
- package/packages/model-bank/src/aiModels/lobehub/chat/xai.ts +32 -0
- package/packages/model-bank/src/aiModels/lobehub/image.ts +240 -0
- package/packages/model-bank/src/aiModels/lobehub/index.ts +10 -0
- package/packages/model-bank/src/aiModels/lobehub/utils.ts +58 -0
- package/packages/model-bank/src/modelProviders/index.ts +10 -10
- package/packages/model-runtime/src/core/streams/qwen.test.ts +320 -0
- package/packages/model-runtime/src/core/streams/qwen.ts +19 -10
- package/packages/types/package.json +1 -1
- package/packages/types/src/agentGroup/index.ts +2 -0
- package/packages/types/src/discover/assistants.ts +9 -0
- package/packages/types/src/discover/fork.ts +163 -0
- package/packages/types/src/discover/groupAgents.ts +13 -4
- package/packages/types/src/discover/index.ts +9 -0
- package/src/app/[variants]/(auth)/_layout/index.tsx +2 -1
- package/src/app/[variants]/(auth)/auth-error/page.tsx +5 -5
- package/src/app/[variants]/(main)/agent/_layout/Sidebar/Topic/List/Item/index.tsx +1 -2
- package/src/app/[variants]/(main)/community/(detail)/agent/features/Header.tsx +37 -0
- package/src/app/[variants]/(main)/community/(detail)/agent/features/Sidebar/ActionButton/ForkAndChat.tsx +133 -0
- package/src/app/[variants]/(main)/community/(detail)/agent/features/Sidebar/ActionButton/index.tsx +2 -2
- package/src/app/[variants]/(main)/community/(detail)/group_agent/features/Details/index.tsx +7 -10
- package/src/app/[variants]/(main)/community/(detail)/group_agent/features/Sidebar/ActionButton/ForkGroupAndChat.tsx +208 -0
- package/src/app/[variants]/(main)/community/(detail)/group_agent/features/Sidebar/ActionButton/index.tsx +2 -2
- package/src/app/[variants]/(main)/community/(detail)/user/features/DetailProvider.tsx +2 -0
- package/src/app/[variants]/(main)/community/(detail)/user/features/UserContent.tsx +7 -0
- package/src/app/[variants]/(main)/community/(detail)/user/features/UserForkedAgentGroups.tsx +63 -0
- package/src/app/[variants]/(main)/community/(detail)/user/features/UserForkedAgents.tsx +61 -0
- package/src/app/[variants]/(main)/community/(detail)/user/index.tsx +3 -1
- package/src/app/[variants]/(main)/group/_layout/Sidebar/Topic/List/Item/index.tsx +1 -2
- package/src/app/[variants]/(main)/settings/profile/index.tsx +92 -68
- package/src/app/[variants]/(mobile)/chat/features/Topic/index.tsx +2 -1
- package/src/features/CommandMenu/AskAgentCommands.tsx +105 -0
- package/src/features/CommandMenu/CommandMenuContext.tsx +57 -38
- package/src/features/CommandMenu/components/CommandInput.tsx +43 -9
- package/src/features/CommandMenu/index.tsx +89 -27
- package/src/features/CommandMenu/types.ts +6 -0
- package/src/features/CommandMenu/useCommandMenu.ts +62 -39
- package/src/locales/default/common.ts +5 -0
- package/src/locales/default/discover.ts +371 -0
- package/src/server/globalConfig/parseMemoryExtractionConfig.ts +7 -8
- package/src/server/routers/lambda/agent.ts +14 -0
- package/src/server/routers/lambda/agentGroup.ts +19 -3
- package/src/server/routers/lambda/market/agent.ts +234 -26
- package/src/server/routers/lambda/market/agentGroup.ts +204 -1
- package/src/server/services/discover/index.ts +52 -2
- package/src/services/agent.ts +8 -0
- package/src/services/chatGroup/index.ts +8 -0
- package/src/services/marketApi.ts +78 -0
- package/src/store/user/slices/settings/selectors/__snapshots__/settings.test.ts.snap +12 -12
- package/packages/model-bank/src/aiModels/lobehub.ts +0 -1315
|
@@ -0,0 +1,267 @@
|
|
|
1
|
+
import { AIChatModelCard } from '../../../types/aiModel';
|
|
2
|
+
|
|
3
|
+
export const googleChatModels: AIChatModelCard[] = [
|
|
4
|
+
{
|
|
5
|
+
abilities: {
|
|
6
|
+
functionCall: true,
|
|
7
|
+
reasoning: true,
|
|
8
|
+
search: true,
|
|
9
|
+
video: true,
|
|
10
|
+
vision: true,
|
|
11
|
+
},
|
|
12
|
+
contextWindowTokens: 1_048_576 + 65_536,
|
|
13
|
+
description:
|
|
14
|
+
"Gemini 3 Pro is Google's most powerful agent and vibe-coding model, delivering richer visuals and deeper interaction on top of state-of-the-art reasoning.",
|
|
15
|
+
displayName: 'Gemini 3 Pro Preview',
|
|
16
|
+
enabled: true,
|
|
17
|
+
id: 'gemini-3-pro-preview',
|
|
18
|
+
maxOutput: 65_536,
|
|
19
|
+
pricing: {
|
|
20
|
+
units: [
|
|
21
|
+
{
|
|
22
|
+
name: 'textInput_cacheRead',
|
|
23
|
+
strategy: 'tiered',
|
|
24
|
+
tiers: [
|
|
25
|
+
{ rate: 0.2, upTo: 200_000 },
|
|
26
|
+
{ rate: 0.4, upTo: 'infinity' },
|
|
27
|
+
],
|
|
28
|
+
unit: 'millionTokens',
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
name: 'textInput',
|
|
32
|
+
strategy: 'tiered',
|
|
33
|
+
tiers: [
|
|
34
|
+
{ rate: 2, upTo: 200_000 },
|
|
35
|
+
{ rate: 4, upTo: 'infinity' },
|
|
36
|
+
],
|
|
37
|
+
unit: 'millionTokens',
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
name: 'textOutput',
|
|
41
|
+
strategy: 'tiered',
|
|
42
|
+
tiers: [
|
|
43
|
+
{ rate: 12, upTo: 200_000 },
|
|
44
|
+
{ rate: 18, upTo: 'infinity' },
|
|
45
|
+
],
|
|
46
|
+
unit: 'millionTokens',
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
lookup: { prices: { '1h': 4.5 }, pricingParams: ['ttl'] },
|
|
50
|
+
name: 'textInput_cacheWrite',
|
|
51
|
+
strategy: 'lookup',
|
|
52
|
+
unit: 'millionTokens',
|
|
53
|
+
},
|
|
54
|
+
],
|
|
55
|
+
},
|
|
56
|
+
releasedAt: '2025-11-18',
|
|
57
|
+
settings: {
|
|
58
|
+
extendParams: ['thinkingLevel2', 'urlContext'],
|
|
59
|
+
searchImpl: 'params',
|
|
60
|
+
searchProvider: 'google',
|
|
61
|
+
},
|
|
62
|
+
type: 'chat',
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
abilities: {
|
|
66
|
+
functionCall: true,
|
|
67
|
+
reasoning: true,
|
|
68
|
+
search: true,
|
|
69
|
+
video: true,
|
|
70
|
+
vision: true,
|
|
71
|
+
},
|
|
72
|
+
contextWindowTokens: 1_048_576 + 65_536,
|
|
73
|
+
description:
|
|
74
|
+
"Gemini 3 Flash Preview is Google's latest best-value model, improving on Gemini 2.5 Flash.",
|
|
75
|
+
displayName: 'Gemini 3 Flash Preview',
|
|
76
|
+
enabled: true,
|
|
77
|
+
id: 'gemini-3-flash-preview',
|
|
78
|
+
maxOutput: 65_536,
|
|
79
|
+
pricing: {
|
|
80
|
+
units: [
|
|
81
|
+
{
|
|
82
|
+
name: 'textInput',
|
|
83
|
+
rate: 0.5,
|
|
84
|
+
strategy: 'fixed',
|
|
85
|
+
unit: 'millionTokens',
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
name: 'textInput_cacheRead',
|
|
89
|
+
rate: 0.05,
|
|
90
|
+
strategy: 'fixed',
|
|
91
|
+
unit: 'millionTokens',
|
|
92
|
+
},
|
|
93
|
+
{ name: 'textOutput', rate: 3, strategy: 'fixed', unit: 'millionTokens' },
|
|
94
|
+
],
|
|
95
|
+
},
|
|
96
|
+
releasedAt: '2025-12-17',
|
|
97
|
+
settings: {
|
|
98
|
+
extendParams: ['thinkingLevel', 'urlContext'],
|
|
99
|
+
searchImpl: 'params',
|
|
100
|
+
searchProvider: 'google',
|
|
101
|
+
},
|
|
102
|
+
type: 'chat',
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
abilities: {
|
|
106
|
+
functionCall: true,
|
|
107
|
+
reasoning: true,
|
|
108
|
+
search: true,
|
|
109
|
+
video: true,
|
|
110
|
+
vision: true,
|
|
111
|
+
},
|
|
112
|
+
contextWindowTokens: 1_048_576 + 65_536,
|
|
113
|
+
description:
|
|
114
|
+
"Gemini 2.5 Pro is Google's most advanced reasoning model, able to reason over code, math, and STEM problems and analyze large datasets, codebases, and documents with long context.",
|
|
115
|
+
displayName: 'Gemini 2.5 Pro',
|
|
116
|
+
enabled: true,
|
|
117
|
+
id: 'gemini-2.5-pro',
|
|
118
|
+
maxOutput: 65_536,
|
|
119
|
+
pricing: {
|
|
120
|
+
units: [
|
|
121
|
+
{
|
|
122
|
+
name: 'textInput_cacheRead',
|
|
123
|
+
strategy: 'tiered',
|
|
124
|
+
tiers: [
|
|
125
|
+
{ rate: 0.31, upTo: 200_000 },
|
|
126
|
+
{ rate: 0.625, upTo: 'infinity' },
|
|
127
|
+
],
|
|
128
|
+
unit: 'millionTokens',
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
name: 'textInput',
|
|
132
|
+
strategy: 'tiered',
|
|
133
|
+
tiers: [
|
|
134
|
+
{ rate: 1.25, upTo: 200_000 },
|
|
135
|
+
{ rate: 2.5, upTo: 'infinity' },
|
|
136
|
+
],
|
|
137
|
+
unit: 'millionTokens',
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
name: 'textOutput',
|
|
141
|
+
strategy: 'tiered',
|
|
142
|
+
tiers: [
|
|
143
|
+
{ rate: 10, upTo: 200_000 },
|
|
144
|
+
{ rate: 15, upTo: 'infinity' },
|
|
145
|
+
],
|
|
146
|
+
unit: 'millionTokens',
|
|
147
|
+
},
|
|
148
|
+
],
|
|
149
|
+
},
|
|
150
|
+
releasedAt: '2025-06-17',
|
|
151
|
+
settings: {
|
|
152
|
+
searchImpl: 'params',
|
|
153
|
+
searchProvider: 'google',
|
|
154
|
+
},
|
|
155
|
+
type: 'chat',
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
abilities: {
|
|
159
|
+
functionCall: true,
|
|
160
|
+
reasoning: true,
|
|
161
|
+
search: true,
|
|
162
|
+
video: true,
|
|
163
|
+
vision: true,
|
|
164
|
+
},
|
|
165
|
+
contextWindowTokens: 1_048_576 + 65_536,
|
|
166
|
+
description: "Gemini 2.5 Flash is Google's best-value model with full capabilities.",
|
|
167
|
+
displayName: 'Gemini 2.5 Flash',
|
|
168
|
+
id: 'gemini-2.5-flash',
|
|
169
|
+
maxOutput: 65_536,
|
|
170
|
+
pricing: {
|
|
171
|
+
units: [
|
|
172
|
+
{
|
|
173
|
+
name: 'textInput_cacheRead',
|
|
174
|
+
rate: 0.03,
|
|
175
|
+
strategy: 'fixed',
|
|
176
|
+
unit: 'millionTokens',
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
name: 'textInput',
|
|
180
|
+
rate: 0.3,
|
|
181
|
+
strategy: 'fixed',
|
|
182
|
+
unit: 'millionTokens',
|
|
183
|
+
},
|
|
184
|
+
{ name: 'textOutput', rate: 2.5, strategy: 'fixed', unit: 'millionTokens' },
|
|
185
|
+
],
|
|
186
|
+
},
|
|
187
|
+
releasedAt: '2025-06-17',
|
|
188
|
+
settings: {
|
|
189
|
+
extendParams: ['enableReasoning', 'reasoningBudgetToken'],
|
|
190
|
+
searchImpl: 'params',
|
|
191
|
+
searchProvider: 'google',
|
|
192
|
+
},
|
|
193
|
+
type: 'chat',
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
abilities: {
|
|
197
|
+
imageOutput: true,
|
|
198
|
+
reasoning: true,
|
|
199
|
+
search: true,
|
|
200
|
+
vision: true,
|
|
201
|
+
},
|
|
202
|
+
contextWindowTokens: 131_072 + 32_768,
|
|
203
|
+
description:
|
|
204
|
+
"Gemini 3 Pro Image (Nano Banana Pro) is Google's image generation model and also supports multimodal chat.",
|
|
205
|
+
displayName: 'Nano Banana Pro',
|
|
206
|
+
enabled: true,
|
|
207
|
+
id: 'gemini-3-pro-image-preview',
|
|
208
|
+
maxOutput: 32_768,
|
|
209
|
+
pricing: {
|
|
210
|
+
approximatePricePerImage: 0.134,
|
|
211
|
+
units: [
|
|
212
|
+
{ name: 'imageOutput', rate: 120, strategy: 'fixed', unit: 'millionTokens' },
|
|
213
|
+
{ name: 'textInput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },
|
|
214
|
+
{ name: 'textOutput', rate: 12, strategy: 'fixed', unit: 'millionTokens' },
|
|
215
|
+
],
|
|
216
|
+
},
|
|
217
|
+
settings: {
|
|
218
|
+
searchImpl: 'params',
|
|
219
|
+
searchProvider: 'google',
|
|
220
|
+
},
|
|
221
|
+
type: 'chat',
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
abilities: {
|
|
225
|
+
imageOutput: true,
|
|
226
|
+
vision: true,
|
|
227
|
+
},
|
|
228
|
+
contextWindowTokens: 32_768 + 32_768,
|
|
229
|
+
description:
|
|
230
|
+
"Nano Banana is Google's newest, fastest, and most efficient native multimodal model, enabling conversational image generation and editing.",
|
|
231
|
+
displayName: 'Nano Banana',
|
|
232
|
+
id: 'gemini-2.5-flash-image-preview',
|
|
233
|
+
maxOutput: 32_768,
|
|
234
|
+
pricing: {
|
|
235
|
+
units: [
|
|
236
|
+
{ name: 'textInput', rate: 0.3, strategy: 'fixed', unit: 'millionTokens' },
|
|
237
|
+
{ name: 'imageInput', rate: 0.3, strategy: 'fixed', unit: 'millionTokens' },
|
|
238
|
+
{ name: 'textOutput', rate: 2.5, strategy: 'fixed', unit: 'millionTokens' },
|
|
239
|
+
{ name: 'imageOutput', rate: 30, strategy: 'fixed', unit: 'millionTokens' },
|
|
240
|
+
],
|
|
241
|
+
},
|
|
242
|
+
releasedAt: '2025-08-26',
|
|
243
|
+
type: 'chat',
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
abilities: {
|
|
247
|
+
imageOutput: true,
|
|
248
|
+
vision: true,
|
|
249
|
+
},
|
|
250
|
+
contextWindowTokens: 32_768,
|
|
251
|
+
description: 'Gemini 2.0 Flash experimental model with image generation support.',
|
|
252
|
+
displayName: 'Gemini 2.0 Flash (Image Generation) Experimental',
|
|
253
|
+
id: 'gemini-2.0-flash-exp-image-generation',
|
|
254
|
+
maxOutput: 8192,
|
|
255
|
+
pricing: {
|
|
256
|
+
units: [
|
|
257
|
+
{ name: 'textInput', rate: 0.1, strategy: 'fixed', unit: 'millionTokens' },
|
|
258
|
+
{ name: 'imageInput', rate: 0.1, strategy: 'fixed', unit: 'millionTokens' },
|
|
259
|
+
{ name: 'audioInput', rate: 0.7, strategy: 'fixed', unit: 'millionTokens' },
|
|
260
|
+
{ name: 'textOutput', rate: 0.4, strategy: 'fixed', unit: 'millionTokens' },
|
|
261
|
+
{ name: 'imageOutput', rate: 30, strategy: 'fixed', unit: 'millionTokens' },
|
|
262
|
+
],
|
|
263
|
+
},
|
|
264
|
+
releasedAt: '2025-03-14',
|
|
265
|
+
type: 'chat',
|
|
266
|
+
},
|
|
267
|
+
];
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { AIChatModelCard } from '../../../types/aiModel';
|
|
2
|
+
import { anthropicChatModels } from './anthropic';
|
|
3
|
+
import { deepseekChatModels } from './deepseek';
|
|
4
|
+
import { googleChatModels } from './google';
|
|
5
|
+
import { minimaxChatModels } from './minimax';
|
|
6
|
+
import { moonshotChatModels } from './moonshot';
|
|
7
|
+
import { openaiChatModels } from './openai';
|
|
8
|
+
import { xaiChatModels } from './xai';
|
|
9
|
+
|
|
10
|
+
export const lobehubChatModels: AIChatModelCard[] = [
|
|
11
|
+
...anthropicChatModels,
|
|
12
|
+
...googleChatModels,
|
|
13
|
+
...openaiChatModels,
|
|
14
|
+
...deepseekChatModels,
|
|
15
|
+
...xaiChatModels,
|
|
16
|
+
...minimaxChatModels,
|
|
17
|
+
...moonshotChatModels,
|
|
18
|
+
];
|
|
19
|
+
|
|
20
|
+
export { anthropicChatModels } from './anthropic';
|
|
21
|
+
export { deepseekChatModels } from './deepseek';
|
|
22
|
+
export { googleChatModels } from './google';
|
|
23
|
+
export { minimaxChatModels } from './minimax';
|
|
24
|
+
export { moonshotChatModels } from './moonshot';
|
|
25
|
+
export { openaiChatModels } from './openai';
|
|
26
|
+
export { xaiChatModels } from './xai';
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { AIChatModelCard } from '../../../types/aiModel';
|
|
2
|
+
|
|
3
|
+
export const minimaxChatModels: AIChatModelCard[] = [
|
|
4
|
+
{
|
|
5
|
+
abilities: {
|
|
6
|
+
functionCall: true,
|
|
7
|
+
reasoning: true,
|
|
8
|
+
},
|
|
9
|
+
contextWindowTokens: 204_800,
|
|
10
|
+
description:
|
|
11
|
+
'Powerful multilingual programming capabilities, comprehensively upgraded programming experience.',
|
|
12
|
+
displayName: 'MiniMax M2.1',
|
|
13
|
+
enabled: true,
|
|
14
|
+
id: 'MiniMax-M2.1',
|
|
15
|
+
maxOutput: 131_072,
|
|
16
|
+
pricing: {
|
|
17
|
+
units: [
|
|
18
|
+
{ name: 'textInput', rate: 0.3, strategy: 'fixed', unit: 'millionTokens' },
|
|
19
|
+
{ name: 'textInput_cacheWrite', rate: 0.375, strategy: 'fixed', unit: 'millionTokens' },
|
|
20
|
+
{ name: 'textInput_cacheRead', rate: 0.03, strategy: 'fixed', unit: 'millionTokens' },
|
|
21
|
+
{ name: 'textOutput', rate: 1.2, strategy: 'fixed', unit: 'millionTokens' },
|
|
22
|
+
],
|
|
23
|
+
},
|
|
24
|
+
releasedAt: '2025-12-23',
|
|
25
|
+
type: 'chat',
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
abilities: {
|
|
29
|
+
functionCall: true,
|
|
30
|
+
reasoning: true,
|
|
31
|
+
},
|
|
32
|
+
contextWindowTokens: 204_800,
|
|
33
|
+
description:
|
|
34
|
+
'Powerful multilingual programming capabilities with faster and more efficient inference.',
|
|
35
|
+
displayName: 'MiniMax M2.1 Lightning',
|
|
36
|
+
enabled: true,
|
|
37
|
+
id: 'MiniMax-M2.1-Lightning',
|
|
38
|
+
maxOutput: 131_072,
|
|
39
|
+
pricing: {
|
|
40
|
+
units: [
|
|
41
|
+
{ name: 'textInput', rate: 0.3, strategy: 'fixed', unit: 'millionTokens' },
|
|
42
|
+
{ name: 'textInput_cacheWrite', rate: 0.375, strategy: 'fixed', unit: 'millionTokens' },
|
|
43
|
+
{ name: 'textInput_cacheRead', rate: 0.03, strategy: 'fixed', unit: 'millionTokens' },
|
|
44
|
+
{ name: 'textOutput', rate: 2.4, strategy: 'fixed', unit: 'millionTokens' },
|
|
45
|
+
],
|
|
46
|
+
},
|
|
47
|
+
releasedAt: '2025-12-23',
|
|
48
|
+
type: 'chat',
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
abilities: {
|
|
52
|
+
functionCall: true,
|
|
53
|
+
reasoning: true,
|
|
54
|
+
search: true,
|
|
55
|
+
},
|
|
56
|
+
contextWindowTokens: 204_800,
|
|
57
|
+
description: 'Built for efficient coding and agent workflows.',
|
|
58
|
+
displayName: 'MiniMax M2',
|
|
59
|
+
id: 'MiniMax-M2-Stable',
|
|
60
|
+
maxOutput: 131_072,
|
|
61
|
+
pricing: {
|
|
62
|
+
units: [
|
|
63
|
+
{ name: 'textInput', rate: 0.3, strategy: 'fixed', unit: 'millionTokens' },
|
|
64
|
+
{ name: 'textInput_cacheWrite', rate: 0.375, strategy: 'fixed', unit: 'millionTokens' },
|
|
65
|
+
{ name: 'textInput_cacheRead', rate: 0.03, strategy: 'fixed', unit: 'millionTokens' },
|
|
66
|
+
{ name: 'textOutput', rate: 1.2, strategy: 'fixed', unit: 'millionTokens' },
|
|
67
|
+
],
|
|
68
|
+
},
|
|
69
|
+
releasedAt: '2025-10-27',
|
|
70
|
+
settings: {
|
|
71
|
+
searchImpl: 'params',
|
|
72
|
+
},
|
|
73
|
+
type: 'chat',
|
|
74
|
+
},
|
|
75
|
+
];
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { AIChatModelCard } from '../../../types/aiModel';
|
|
2
|
+
|
|
3
|
+
export const moonshotChatModels: AIChatModelCard[] = [
|
|
4
|
+
{
|
|
5
|
+
abilities: {
|
|
6
|
+
functionCall: true,
|
|
7
|
+
search: true,
|
|
8
|
+
},
|
|
9
|
+
contextWindowTokens: 131_072,
|
|
10
|
+
description:
|
|
11
|
+
'kimi-k2 is an MoE foundation model with strong coding and agent capabilities (1T total params, 32B active), outperforming other mainstream open models across reasoning, programming, math, and agent benchmarks.',
|
|
12
|
+
displayName: 'Kimi K2',
|
|
13
|
+
enabled: true,
|
|
14
|
+
id: 'kimi-k2-0711-preview',
|
|
15
|
+
pricing: {
|
|
16
|
+
units: [
|
|
17
|
+
{ name: 'textInput', rate: 0.6, strategy: 'fixed', unit: 'millionTokens' },
|
|
18
|
+
{ name: 'textOutput', rate: 2.5, strategy: 'fixed', unit: 'millionTokens' },
|
|
19
|
+
{ name: 'textInput_cacheRead', rate: 0.15, strategy: 'fixed', unit: 'millionTokens' },
|
|
20
|
+
],
|
|
21
|
+
},
|
|
22
|
+
releasedAt: '2025-07-11',
|
|
23
|
+
settings: {
|
|
24
|
+
searchImpl: 'params',
|
|
25
|
+
},
|
|
26
|
+
type: 'chat',
|
|
27
|
+
},
|
|
28
|
+
];
|