@@ -129,15 +129,13 @@ export function Evals({
129129 < TableRow key = { run . id } >
130130 < TableCell title = { run . model ?. description } >
131131 < div className = "font-sans" > { run . label } </ div >
132- < div className = "text-xs opacity-50" >
133- { formatTokens ( run . modelInfo ?. contextWindow ?? 0 ) }
134- </ div >
132+ < div className = "text-xs opacity-50" > { formatTokens ( run . modelInfo ?. contextWindow ) } </ div >
135133 </ TableCell >
136134 < TableCell className = "border-r" >
137135 < div className = "flex flex-row gap-2" >
138- < div > { formatCurrency ( run . modelInfo ?. inputPrice ?? 0 ) } </ div >
136+ < div > { formatCurrency ( run . modelInfo ?. inputPrice ) } </ div >
139137 < div className = "opacity-25" > /</ div >
140- < div > { formatCurrency ( run . modelInfo ?. outputPrice ?? 0 ) } </ div >
138+ < div > { formatCurrency ( run . modelInfo ?. outputPrice ) } </ div >
141139 </ div >
142140 </ TableCell >
143141 < TableCell className = "font-mono" > { formatDuration ( run . taskMetrics . duration ) } </ TableCell >
@@ -150,19 +148,27 @@ export function Evals({
150148 </ TableCell >
151149 < TableCell className = "border-r" > { formatCurrency ( run . taskMetrics . cost ) } </ TableCell >
152150 < TableCell className = "text-muted-foreground" >
153- { formatScore ( run . languageScores ?. go ?? 0 ) } %
151+ { run . languageScores ?. go !== undefined ? ` ${ formatScore ( run . languageScores . go ) } %` : "-" }
154152 </ TableCell >
155153 < TableCell className = "text-muted-foreground" >
156- { formatScore ( run . languageScores ?. java ?? 0 ) } %
154+ { run . languageScores ?. java !== undefined
155+ ? `${ formatScore ( run . languageScores . java ) } %`
156+ : "-" }
157157 </ TableCell >
158158 < TableCell className = "text-muted-foreground" >
159- { formatScore ( run . languageScores ?. javascript ?? 0 ) } %
159+ { run . languageScores ?. javascript !== undefined
160+ ? `${ formatScore ( run . languageScores . javascript ) } %`
161+ : "-" }
160162 </ TableCell >
161163 < TableCell className = "text-muted-foreground" >
162- { formatScore ( run . languageScores ?. python ?? 0 ) } %
164+ { run . languageScores ?. python !== undefined
165+ ? `${ formatScore ( run . languageScores . python ) } %`
166+ : "-" }
163167 </ TableCell >
164168 < TableCell className = "text-muted-foreground" >
165- { formatScore ( run . languageScores ?. rust ?? 0 ) } %
169+ { run . languageScores ?. rust !== undefined
170+ ? `${ formatScore ( run . languageScores . rust ) } %`
171+ : "-" }
166172 </ TableCell >
167173 < TableCell className = "font-bold" > { run . score } %</ TableCell >
168174 </ TableRow >
0 commit comments