fix(cliproxy): address PR review feedback

- align tier fallback to 'unknown' instead of 'pro' in quota-manager

- update stale comment referencing old allowedTiers approach
This commit is contained in:
kaitranntt
2026-01-28 16:41:27 -05:00
parent 31a91f609f
commit 4967693839
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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;
+1 -1
View File
@@ -225,7 +225,7 @@ export async function findHealthyAccount(
return {
id: account.id,
tier: account.tier || 'pro',
tier: account.tier || 'unknown',
lastQuota: avgQuota,
};
})