mirror of
https://github.com/tiennm99/ccs.git
synced 2026-07-16 04:18:05 +00:00
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:
@@ -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;
|
||||
|
||||
@@ -225,7 +225,7 @@ export async function findHealthyAccount(
|
||||
|
||||
return {
|
||||
id: account.id,
|
||||
tier: account.tier || 'pro',
|
||||
tier: account.tier || 'unknown',
|
||||
lastQuota: avgQuota,
|
||||
};
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user