(url?: string)
| 24 | } |
| 25 | |
| 26 | function 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 | |
| 31 | export function mapApiError(status: number, body: ApiErrorBody, url?: string): CLIError { |
| 32 | const apiMsg = |