Skip to content

Commit 7c7fd6e

Browse files
committed
fix: remove unused formatScore import and maintain type safety
1 parent 9943604 commit 7c7fd6e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

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

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

6-
import { formatScore } from "@/lib"
7-
86
export async function getEvalRuns() {
97
const languageScores = await getLanguageScores()
108

@@ -18,7 +16,7 @@ export async function getEvalRuns() {
1816
return {
1917
...run,
2018
label: run.description || run.model,
21-
score: formatScore(run.passed / (run.passed + run.failed)),
19+
score: Math.round((run.passed / (run.passed + run.failed)) * 100),
2220
languageScores: languageScores[run.id],
2321
taskMetrics: run.taskMetrics!,
2422
modelId: getModelId(settings),

0 commit comments

Comments
 (0)