MCPcopy
hub / github.com/MiniMax-AI/cli / upgradeUrl

Function upgradeUrl

src/errors/api.ts:26–29  ·  view source on GitHub ↗
(url?: string)

Source from the content-addressed store, hash-verified

24}
25
26function upgradeUrl(url?: string): string {
27 const host = url?.includes('minimaxi.com') ? 'https://platform.minimaxi.com' : 'https://platform.minimax.io';
28 return `${host}/subscribe/token-plan`;
29}
30
31export function mapApiError(status: number, body: ApiErrorBody, url?: string): CLIError {
32 const apiMsg =

Callers 1

mapApiErrorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected