fix: 官方等价轮播限制最多展示前 3 个模型

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
abingyydsandClaude Sonnet 4.6 committed 2026-03-25 17:16:48 +09:00
1 parent a6b962084d
commit 2109f2a7a0
29 files changed
+31 -30

No files matched your search

+2 -1
View File
@@ -64,7 +64,8 @@ export function calcOfficialEquivList(models, quotaDollars) {
return Object.entries(bestByLabel)
.map(([label, equivDollars]) => ({ label, equivDollars: Math.round(equivDollars) }))
.sort((a, b) => b.equivDollars - a.equivDollars);
.sort((a, b) => b.equivDollars - a.equivDollars)
.slice(0, 3);
}
/**