feat: add MiniMax coding plan quota providers (#516)
Add separate MiniMax quota providers for minimax.io and minimaxi.com Register and export both MiniMax providers in the web quota dispatcher Update UI quota provider types/list and quota module documentation
This commit is contained in:
@@ -16,6 +16,8 @@ import * as nanogpt from './nanogpt.js';
|
||||
import * as openai from './openai.js';
|
||||
import * as openrouter from './openrouter.js';
|
||||
import * as zai from './zai.js';
|
||||
import * as minimaxCodingPlan from './minimax-coding-plan.js';
|
||||
import * as minimaxCnCodingPlan from './minimax-cn-coding-plan.js';
|
||||
|
||||
const registry = {
|
||||
claude: {
|
||||
@@ -71,6 +73,18 @@ const registry = {
|
||||
providerName: copilot.providerNameAddon,
|
||||
isConfigured: copilot.isConfigured,
|
||||
fetchQuota: copilot.fetchQuotaAddon
|
||||
},
|
||||
'minimax-coding-plan': {
|
||||
providerId: minimaxCodingPlan.providerId,
|
||||
providerName: minimaxCodingPlan.providerName,
|
||||
isConfigured: minimaxCodingPlan.isConfigured,
|
||||
fetchQuota: minimaxCodingPlan.fetchQuota
|
||||
},
|
||||
'minimax-cn-coding-plan': {
|
||||
providerId: minimaxCnCodingPlan.providerId,
|
||||
providerName: minimaxCnCodingPlan.providerName,
|
||||
isConfigured: minimaxCnCodingPlan.isConfigured,
|
||||
fetchQuota: minimaxCnCodingPlan.fetchQuota
|
||||
}
|
||||
};
|
||||
|
||||
@@ -126,3 +140,5 @@ export const fetchKimiQuota = kimi.fetchQuota;
|
||||
export const fetchOpenRouterQuota = openrouter.fetchQuota;
|
||||
export const fetchZaiQuota = zai.fetchQuota;
|
||||
export const fetchNanoGptQuota = nanogpt.fetchQuota;
|
||||
export const fetchMinimaxCodingPlanQuota = minimaxCodingPlan.fetchQuota;
|
||||
export const fetchMinimaxCnCodingPlanQuota = minimaxCnCodingPlan.fetchQuota;
|
||||
|
||||
Reference in New Issue
Block a user