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:
@@ -14,12 +14,13 @@ export const QUOTA_PROVIDERS: QuotaProviderMeta[] = [
|
||||
{ id: 'nano-gpt', name: 'NanoGPT' },
|
||||
{ id: 'openrouter', name: 'OpenRouter' },
|
||||
{ id: 'zai-coding-plan', name: 'z.ai' },
|
||||
{ id: 'minimax-cn-coding-plan', name: 'MiniMax Coding Plan (minimaxi.com)' },
|
||||
{ id: 'minimax-coding-plan', name: 'MiniMax Coding Plan (minimax.io)' },
|
||||
];
|
||||
|
||||
export const QUOTA_PROVIDER_MAP = QUOTA_PROVIDERS.reduce<Record<string, QuotaProviderMeta>>(
|
||||
(acc, provider) => {
|
||||
acc[provider.id] = provider;
|
||||
return acc;
|
||||
},
|
||||
{}
|
||||
);
|
||||
export const QUOTA_PROVIDER_MAP = QUOTA_PROVIDERS.reduce<
|
||||
Record<string, QuotaProviderMeta>
|
||||
>((acc, provider) => {
|
||||
acc[provider.id] = provider;
|
||||
return acc;
|
||||
}, {});
|
||||
|
||||
@@ -8,7 +8,9 @@ export type QuotaProviderId =
|
||||
| 'kimi-for-coding'
|
||||
| 'nano-gpt'
|
||||
| 'openrouter'
|
||||
| 'zai-coding-plan';
|
||||
| 'zai-coding-plan'
|
||||
| 'minimax-coding-plan'
|
||||
| 'minimax-cn-coding-plan';
|
||||
|
||||
export interface UsageWindow {
|
||||
usedPercent: number | null;
|
||||
|
||||
Reference in New Issue
Block a user