fix: 官方等价轮播限制最多展示前 3 个模型
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
1 parent
a6b962084d
commit
2109f2a7a0
29 files changed
+31
-30
No files matched your search
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user