Skip to content

Commit 7664453

Browse files
author
Frank
committed
zen: add minimax m2.1
1 parent 460672a commit 7664453

2 files changed

Lines changed: 13 additions & 1 deletion

File tree

packages/console/app/src/component/icon.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,14 @@ export function IconZai(props: JSX.SvgSVGAttributes<SVGSVGElement>) {
202202
)
203203
}
204204

205+
export function IconMiniMax(props: JSX.SvgSVGAttributes<SVGSVGElement>) {
206+
return (
207+
<svg {...props} fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
208+
<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" />
209+
</svg>
210+
)
211+
}
212+
205213
export function IconGemini(props: JSX.SvgSVGAttributes<SVGSVGElement>) {
206214
return (
207215
<svg {...props} viewBox="0 0 50 50" fill="currentColor" xmlns="http://www.w3.org/2000/svg">

packages/console/app/src/routes/workspace/[id]/model-section.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import {
99
IconAlibaba,
1010
IconAnthropic,
1111
IconGemini,
12+
IconMiniMax,
1213
IconMoonshotAI,
1314
IconOpenAI,
1415
IconStealth,
@@ -23,6 +24,7 @@ const getModelLab = (modelId: string) => {
2324
if (modelId.startsWith("kimi")) return "Moonshot AI"
2425
if (modelId.startsWith("glm")) return "Z.ai"
2526
if (modelId.startsWith("qwen")) return "Alibaba"
27+
if (modelId.startsWith("minimax")) return "MiniMax"
2628
if (modelId.startsWith("grok")) return "xAI"
2729
return "Stealth"
2830
}
@@ -35,7 +37,7 @@ const getModelsInfo = query(async (workspaceID: string) => {
3537
.filter(([id, _model]) => !["claude-3-5-haiku"].includes(id))
3638
.filter(([id, _model]) => !id.startsWith("alpha-"))
3739
.sort(([idA, modelA], [idB, modelB]) => {
38-
const priority = ["big-pickle", "grok", "claude", "gpt", "gemini"]
40+
const priority = ["big-pickle", "minimax", "grok", "claude", "gpt", "gemini"]
3941
const getPriority = (id: string) => {
4042
const index = priority.findIndex((p) => id.startsWith(p))
4143
return index === -1 ? Infinity : index
@@ -129,6 +131,8 @@ export function ModelSection() {
129131
return <IconAlibaba width={16} height={16} />
130132
case "xAI":
131133
return <IconXai width={16} height={16} />
134+
case "MiniMax":
135+
return <IconMiniMax width={16} height={16} />
132136
default:
133137
return <IconStealth width={16} height={16} />
134138
}

0 commit comments

Comments
 (0)