feat(models): add minimax and moonshot providers
This commit is contained in:
+3
-1
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user