Thomas G. Lopes
custom rule
7357f85
raw
history blame
217 Bytes
import type { ModelWithTokenizer } from "$lib/types.js";
export function getTrending(models: ModelWithTokenizer[], limit = 5) {
return models.toSorted((a, b) => b.trendingScore - a.trendingScore).slice(0, limit);
}