Skip to content

Commit 374e9ea

Browse files
committed
fix: revert evals.ts to origin/main, keep formatScore import
1 parent 668859b commit 374e9ea

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

apps/web-roo-code/src/actions/evals.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
import { getModelId, rooCodeSettingsSchema } from "@roo-code/types"
44
import { getRuns, getLanguageScores } from "@roo-code/evals"
55

6+
import { formatScore } from "@/lib"
7+
68
export async function getEvalRuns() {
79
const languageScores = await getLanguageScores()
810

@@ -16,7 +18,7 @@ export async function getEvalRuns() {
1618
return {
1719
...run,
1820
label: run.description || run.model,
19-
score: Math.round((run.passed / (run.passed + run.failed)) * 100),
21+
score: formatScore(run.passed / (run.passed + run.failed)),
2022
languageScores: languageScores[run.id],
2123
taskMetrics: run.taskMetrics!,
2224
modelId: getModelId(settings),

0 commit comments

Comments
 (0)