feat(models): add minimax and moonshot providers

This commit is contained in:
William Valentin
2026-02-15 19:18:48 -08:00
parent 94020cb7ea
commit 0470647ee7
11 changed files with 214 additions and 5 deletions
+3 -1
View File
@@ -304,13 +304,15 @@ const checkModelConnectivity: Check = async (ctx) => {
}
// Providers with API-key style auth (no auth store integration yet)
const needsKey = ['gemini', 'openrouter', 'vercel', 'xai', 'github'];
const needsKey = ['gemini', 'openrouter', 'vercel', 'xai', 'minimax', 'moonshot', 'github'];
if (needsKey.includes(provider)) {
const envVarMap: Record<string, string> = {
gemini: 'GEMINI_API_KEY',
openrouter: 'OPENROUTER_API_KEY',
vercel: 'AI_GATEWAY_API_KEY',
xai: 'XAI_API_KEY',
minimax: 'MINIMAX_API_KEY',
moonshot: 'MOONSHOT_API_KEY',
github: 'GITHUB_TOKEN',
};
const envVar = envVarMap[provider];