fix add model provider (#190)

This commit is contained in:
paisley
2026-02-26 18:32:06 +08:00
committed by GitHub
Unverified
parent d38a6b012d
commit 7929a43601
3 changed files with 164 additions and 34 deletions

View File

@@ -97,10 +97,22 @@ const REGISTRY: Record<string, ProviderBackendMeta> = {
},
},
'minimax-portal': {
envVar: 'MINIMAX_API_KEY',
defaultModel: 'minimax-portal/MiniMax-M2.1',
providerConfig: {
baseUrl: 'https://api.minimax.io/anthropic',
api: 'anthropic-messages',
apiKeyEnv: 'MINIMAX_API_KEY',
},
},
'qwen-portal': {
envVar: 'QWEN_API_KEY',
defaultModel: 'qwen-portal/coder-model',
providerConfig: {
baseUrl: 'https://portal.qwen.ai/v1',
api: 'openai-completions',
apiKeyEnv: 'QWEN_API_KEY',
},
},
custom: {
envVar: 'CUSTOM_API_KEY',