feat: add direct MiniMax M2.1 support (#697)
Co-authored-by: Letta <noreply@letta.com>
This commit is contained in:
@@ -197,7 +197,7 @@ export function formatErrorDetails(
|
||||
// Free plan users get a special message about BYOK and free models
|
||||
if (billingTier?.toLowerCase() === "free") {
|
||||
const modelInfo = modelDisplayName ? ` (${modelDisplayName})` : "";
|
||||
return `Selected hosted model${modelInfo} not available on Free plan. Switch to a free model with /model glm-4.7, upgrade your account at ${LETTA_USAGE_URL}, or connect your own API keys with /connect.`;
|
||||
return `Selected hosted model${modelInfo} not available on Free plan. Switch to a free model with /model (glm-4.7 or minimax-m2.1), upgrade your account at ${LETTA_USAGE_URL}, or connect your own API keys with /connect.`;
|
||||
}
|
||||
|
||||
return `Your account is out of credits. Redeem additional credits or configure auto-recharge on your account page: ${LETTA_USAGE_URL}`;
|
||||
|
||||
@@ -501,13 +501,24 @@
|
||||
"id": "glm-4.7",
|
||||
"handle": "zai/glm-4.7",
|
||||
"label": "GLM-4.7",
|
||||
"description": "The best open weights coding model",
|
||||
"description": "zAI's latest coding model",
|
||||
"isFeatured": true,
|
||||
"free": true,
|
||||
"updateArgs": {
|
||||
"context_window": 200000
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "minimax-m2.1",
|
||||
"handle": "minimax/MiniMax-M2.1",
|
||||
"label": "MiniMax 2.1",
|
||||
"description": "MiniMax's latest coding model",
|
||||
"isFeatured": true,
|
||||
"free": true,
|
||||
"updateArgs": {
|
||||
"context_window": 180000
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "minimax-m2",
|
||||
"handle": "openrouter/minimax/minimax-m2",
|
||||
|
||||
Reference in New Issue
Block a user