Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion core/llm/llms/MiniMax.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class MiniMax extends OpenAI {
static providerName = "minimax";
static defaultOptions: Partial<LLMOptions> = {
apiBase: "https://api.minimax.io/v1/",
model: "MiniMax-M2.7",
model: "MiniMax-M3",
useLegacyCompletionsEndpoint: false,
};

Expand Down
13 changes: 6 additions & 7 deletions docs/customize/model-providers/more/minimax.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ sidebarTitle: "MiniMax"
schema: v1

models:
- name: MiniMax M2.7
- name: MiniMax M3
provider: minimax
model: MiniMax-M2.7
model: MiniMax-M3
apiKey: <YOUR_MINIMAX_API_KEY>
```
</Tab>
Expand All @@ -28,9 +28,9 @@ sidebarTitle: "MiniMax"
{
"models": [
{
"title": "MiniMax M2.7",
"title": "MiniMax M3",
"provider": "minimax",
"model": "MiniMax-M2.7",
"model": "MiniMax-M3",
"apiKey": "<YOUR_MINIMAX_API_KEY>"
}
]
Expand All @@ -43,10 +43,9 @@ sidebarTitle: "MiniMax"

| Model | Description |
| :---- | :---------- |
| `MiniMax-M2.7` | Latest flagship model with enhanced reasoning and coding. 204K context window. |
| `MiniMax-M3` | Latest flagship model with 512K context window, 128K max output, and image input support. |
| `MiniMax-M2.7` | Previous flagship model with enhanced reasoning and coding. 204K context window. |
| `MiniMax-M2.7-highspeed` | High-speed version of M2.7 for low-latency scenarios. 204K context window. |
| `MiniMax-M2.5` | Peak performance with ultimate value. 204K context window. |
| `MiniMax-M2.5-highspeed` | Same performance, faster and more agile. 204K context window. |

## Notes

Expand Down
38 changes: 13 additions & 25 deletions gui/src/pages/AddNewModel/configs/models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2699,10 +2699,22 @@ export const models: { [key: string]: ModelPackage } = {
providerOptions: ["sambanova"],
isOpenSource: true,
},
minimaxM3: {
title: "MiniMax M3",
description:
"Latest flagship model with a 512K context window, 128K max output, and image input support.",
params: {
title: "MiniMax M3",
model: "MiniMax-M3",
contextLength: 524_288,
},
providerOptions: ["minimax"],
isOpenSource: false,
},
minimaxM27: {
title: "MiniMax M2.7",
description:
"Latest flagship model with enhanced reasoning and coding capabilities. 204K context window.",
"Previous flagship model with enhanced reasoning and coding capabilities. 204K context window.",
params: {
title: "MiniMax M2.7",
model: "MiniMax-M2.7",
Expand All @@ -2723,30 +2735,6 @@ export const models: { [key: string]: ModelPackage } = {
providerOptions: ["minimax"],
isOpenSource: false,
},
minimaxM25: {
title: "MiniMax M2.5",
description:
"Peak performance with ultimate value. Excels at complex reasoning, code generation, and multi-step tasks with a 204K context window.",
params: {
title: "MiniMax M2.5",
model: "MiniMax-M2.5",
contextLength: 204_800,
},
providerOptions: ["minimax"],
isOpenSource: false,
},
minimaxM25Highspeed: {
title: "MiniMax M2.5 Highspeed",
description:
"Same performance as M2.5, faster and more agile for latency-sensitive tasks with a 204K context window.",
params: {
title: "MiniMax M2.5 Highspeed",
model: "MiniMax-M2.5-highspeed",
contextLength: 204_800,
},
providerOptions: ["minimax"],
isOpenSource: false,
},

// ClawRouter Models
clawrouterAuto: {
Expand Down
3 changes: 1 addition & 2 deletions gui/src/pages/AddNewModel/configs/providers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -576,10 +576,9 @@ Select the \`GPT-4o\` model below to complete your provider configuration, but n
},
],
packages: [
models.minimaxM3,
models.minimaxM27,
models.minimaxM27Highspeed,
models.minimaxM25,
models.minimaxM25Highspeed,
{
...models.AUTODETECT,
params: {
Expand Down
32 changes: 11 additions & 21 deletions packages/llm-info/src/providers/minimax.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,23 @@ import { ModelProvider } from "../types.js";

export const MiniMax: ModelProvider = {
models: [
{
model: "MiniMax-M3",
displayName: "MiniMax M3",
contextLength: 524288,
maxCompletionTokens: 131072,
description:
"Latest flagship model with a 512K context window, 128K max output, and image input support.",
regex: /MiniMax-M3$/i,
recommendedFor: ["chat"],
},
{
model: "MiniMax-M2.7",
displayName: "MiniMax M2.7",
contextLength: 204800,
maxCompletionTokens: 192000,
description:
"Latest flagship model with enhanced reasoning and coding capabilities.",
"Previous flagship model with enhanced reasoning and coding capabilities.",
regex: /MiniMax-M2\.7$/i,
recommendedFor: ["chat"],
},
Expand All @@ -21,26 +31,6 @@ export const MiniMax: ModelProvider = {
regex: /MiniMax-M2\.7-highspeed/i,
recommendedFor: ["chat"],
},
{
model: "MiniMax-M2.5",
displayName: "MiniMax M2.5",
contextLength: 204800,
maxCompletionTokens: 192000,
description:
"Peak performance with ultimate value. Excels at complex reasoning, code generation, and multi-step tasks.",
regex: /MiniMax-M2\.5$/i,
recommendedFor: ["chat"],
},
{
model: "MiniMax-M2.5-highspeed",
displayName: "MiniMax M2.5 Highspeed",
contextLength: 204800,
maxCompletionTokens: 192000,
description:
"Same performance as M2.5, faster and more agile for latency-sensitive tasks.",
regex: /MiniMax-M2\.5-highspeed/i,
recommendedFor: ["chat"],
},
],
id: "minimax",
displayName: "MiniMax",
Expand Down
Loading