MCPcopy Create free account
hub / github.com/OpenPipe/OpenPipe / getRating

Function getRating

app/scripts/rank-base-models.ts:85–85  ·  view source on GitHub ↗
(model: string)

Source from the content-addressed store, hash-verified

83 const ratingsCache: Record<string, { mu: number; sigma: number; matches: number }> = {};
84
85 const getRating = (model: string) => ratingsCache[model] ?? { mu: 24, sigma: 1, matches: 0 };
86
87 const updateRating = (model1: string, model2: string, score: number) => {
88 const rating1 = getRating(model1);

Callers 1

updateRatingFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected