diff --git a/src/cliproxy/quota-fetcher.ts b/src/cliproxy/quota-fetcher.ts index 960076c6..e9e7fd81 100644 --- a/src/cliproxy/quota-fetcher.ts +++ b/src/cliproxy/quota-fetcher.ts @@ -323,7 +323,7 @@ function mapTierString(tierStr: string | undefined): AccountTier { /** * Get project ID and tier via loadCodeAssist endpoint - * Uses allowedTiers array with isDefault=true (CLIProxyAPIPlus approach) + * Uses paidTier.id for accurate tier detection (g1-ultra-tier, g1-pro-tier) */ async function getProjectId(accessToken: string): Promise<{ projectId: string | null; diff --git a/src/cliproxy/quota-manager.ts b/src/cliproxy/quota-manager.ts index 577052fc..a5943c6a 100644 --- a/src/cliproxy/quota-manager.ts +++ b/src/cliproxy/quota-manager.ts @@ -225,7 +225,7 @@ export async function findHealthyAccount( return { id: account.id, - tier: account.tier || 'pro', + tier: account.tier || 'unknown', lastQuota: avgQuota, }; })