feat: add new provider for minimax and qwen portals (#203)
Co-authored-by: Haze <709547807@qq.com>
This commit is contained in:
committed by
GitHub
Unverified
parent
5d548da2e6
commit
f70d5b0c28
@@ -234,7 +234,7 @@ export async function getAllProvidersWithKeyInfo(): Promise<
|
||||
// This must match getOpenClawProviderKey() in ipc-handlers.ts exactly.
|
||||
const openClawKey = (provider.type === 'custom' || provider.type === 'ollama')
|
||||
? `${provider.type}-${provider.id.replace(/-/g, '').slice(0, 8)}`
|
||||
: provider.type;
|
||||
: provider.type === 'minimax-portal-cn' ? 'minimax-portal' : provider.type;
|
||||
if (!isBuiltin && !activeOpenClawProviders.has(provider.type) && !activeOpenClawProviders.has(provider.id) && !activeOpenClawProviders.has(openClawKey)) {
|
||||
console.log(`[Sync] Provider ${provider.id} (${provider.type}) missing from OpenClaw, dropping from ClawX UI`);
|
||||
await deleteProvider(provider.id);
|
||||
|
||||
Reference in New Issue
Block a user