mirror of
https://github.com/DayuanJiang/next-ai-draw-io.git
synced 2026-09-01 17:10:24 +08:00
feat: upgrade MiniMax default model to M3 (#857)
- Add MiniMax-M3 to the model selection list (set as new default at top) - Retain MiniMax-M2.7 and MiniMax-M2.7-highspeed - Remove deprecated MiniMax-M2.5 / M2.5-highspeed - Update supportsImageInput: M3 supports image input (M2.x stay text-only) - Update unit tests to reflect new model lineup - Update example AI_MODEL in CN/EN/JA docs to MiniMax-M3 Co-authored-by: octo-patch <octo-patch@github.com>
This commit is contained in:
@@ -222,7 +222,7 @@ MiniMax 支持两种 API 格式:
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
MINIMAX_API_KEY=your_api_key
|
MINIMAX_API_KEY=your_api_key
|
||||||
AI_MODEL=MiniMax-M2.7
|
AI_MODEL=MiniMax-M3
|
||||||
```
|
```
|
||||||
|
|
||||||
可选配置:
|
可选配置:
|
||||||
|
|||||||
@@ -237,7 +237,7 @@ MiniMax supports two API formats:
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
MINIMAX_API_KEY=your_api_key
|
MINIMAX_API_KEY=your_api_key
|
||||||
AI_MODEL=MiniMax-M2.7
|
AI_MODEL=MiniMax-M3
|
||||||
```
|
```
|
||||||
|
|
||||||
Optional configuration:
|
Optional configuration:
|
||||||
|
|||||||
@@ -222,7 +222,7 @@ MiniMax は 2 つの API 形式をサポートしています:
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
MINIMAX_API_KEY=your_api_key
|
MINIMAX_API_KEY=your_api_key
|
||||||
AI_MODEL=MiniMax-M2.7
|
AI_MODEL=MiniMax-M3
|
||||||
```
|
```
|
||||||
|
|
||||||
オプション設定:
|
オプション設定:
|
||||||
|
|||||||
@@ -1390,8 +1390,12 @@ export function supportsImageInput(modelId: string): boolean {
|
|||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
// MiniMax text models (MiniMax-M2.x series are text-only)
|
// MiniMax text models (MiniMax-M2.x series are text-only; M3 supports image input)
|
||||||
if (lowerModelId.includes("minimax") && !hasVisionIndicator) {
|
if (
|
||||||
|
lowerModelId.includes("minimax") &&
|
||||||
|
!hasVisionIndicator &&
|
||||||
|
!lowerModelId.includes("m3")
|
||||||
|
) {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -351,10 +351,9 @@ export const SUGGESTED_MODELS: Partial<Record<ProviderName, string[]>> = {
|
|||||||
],
|
],
|
||||||
minimax: [
|
minimax: [
|
||||||
// MiniMax models (Anthropic-compatible API)
|
// MiniMax models (Anthropic-compatible API)
|
||||||
|
"MiniMax-M3",
|
||||||
"MiniMax-M2.7",
|
"MiniMax-M2.7",
|
||||||
"MiniMax-M2.7-highspeed",
|
"MiniMax-M2.7-highspeed",
|
||||||
"MiniMax-M2.5",
|
|
||||||
"MiniMax-M2.5-highspeed",
|
|
||||||
],
|
],
|
||||||
novita: [
|
novita: [
|
||||||
// Novita AI models (OpenAI-compatible API)
|
// Novita AI models (OpenAI-compatible API)
|
||||||
|
|||||||
@@ -180,11 +180,14 @@ describe("supportsImageInput", () => {
|
|||||||
expect(supportsImageInput("moonshot-v1-128k")).toBe(false)
|
expect(supportsImageInput("moonshot-v1-128k")).toBe(false)
|
||||||
})
|
})
|
||||||
|
|
||||||
it("returns false for MiniMax text models", () => {
|
it("returns false for MiniMax M2 text models", () => {
|
||||||
expect(supportsImageInput("MiniMax-M2.7")).toBe(false)
|
expect(supportsImageInput("MiniMax-M2.7")).toBe(false)
|
||||||
expect(supportsImageInput("MiniMax-M2.5")).toBe(false)
|
expect(supportsImageInput("MiniMax-M2.7-highspeed")).toBe(false)
|
||||||
expect(supportsImageInput("MiniMax-M2")).toBe(false)
|
expect(supportsImageInput("MiniMax-M2")).toBe(false)
|
||||||
expect(supportsImageInput("MiniMax-M2.5-highspeed")).toBe(false)
|
})
|
||||||
|
|
||||||
|
it("returns true for MiniMax M3 (supports image input)", () => {
|
||||||
|
expect(supportsImageInput("MiniMax-M3")).toBe(true)
|
||||||
})
|
})
|
||||||
|
|
||||||
it("returns false for DeepSeek text models", () => {
|
it("returns false for DeepSeek text models", () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user