mirror of
https://github.com/tiennm99/ccs.git
synced 2026-10-12 20:15:40 +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:
1 parent
31a91f609f
commit
4967693839
2 files changed
+2
-2
No files matched your search
@@ -323,7 +323,7 @@ function mapTierString(tierStr: string | undefined): AccountTier {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Get project ID and tier via loadCodeAssist endpoint
|
* 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<{
|
async function getProjectId(accessToken: string): Promise<{
|
||||||
projectId: string | null;
|
projectId: string | null;
|
||||||
|
|||||||
@@ -225,7 +225,7 @@ export async function findHealthyAccount(
|
|||||||
|
|
||||||
return {
|
return {
|
||||||
id: account.id,
|
id: account.id,
|
||||||
tier: account.tier || 'pro',
|
tier: account.tier || 'unknown',
|
||||||
lastQuota: avgQuota,
|
lastQuota: avgQuota,
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in new issue
Block a user