Skip to content

Commit 2ccc51c

Browse files
committed
feat: add seed to detail page
1 parent f3589b1 commit 2ccc51c

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

script.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -410,6 +410,7 @@ function createDetailRow(stats, modelName, data, vendor, model, basePath) {
410410

411411
detailTableRows += `
412412
<tr class="hover:bg-zinc-100 hover:dark:bg-zinc-700 text-xs">
413+
<td class="px-2 py-2 text-center text-zinc-700 dark:text-zinc-300 font-mono">${stat.seed || 'Unknown'}</td>
413414
<td class="px-2 py-2 text-center text-zinc-700 dark:text-zinc-300 font-mono">${stat.final_round}</td>
414415
<td class="px-2 py-2 text-center text-green-600 dark:text-green-400 font-mono">${successRate}%</td>
415416
<td class="px-2 py-2 text-center text-yellow-600 dark:text-yellow-400 font-mono">${failedRate}%</td>
@@ -450,7 +451,7 @@ function createDetailRow(stats, modelName, data, vendor, model, basePath) {
450451
const pieChartCanvasId = `pie-${modelName.replace(/[^a-zA-Z0-9]/g, '-')}`;
451452

452453
detailRow.innerHTML = `
453-
<td colspan="12" class="p-4">
454+
<td colspan="13" class="p-4">
454455
<div class="mb-8 pb-4 flex flex-col lg:flex-row gap-4 h-52">
455456
<!-- Rounds -->
456457
<div class="flex-1">
@@ -561,7 +562,8 @@ function createDetailRow(stats, modelName, data, vendor, model, basePath) {
561562
<thead class="bg-zinc-100 dark:bg-zinc-800 sticky top-0">
562563
<tr class="text-xs border-b border-zinc-300 dark:border-zinc-700">
563564
<!-- Stats Section -->
564-
<th class="px-2 py-3 text-center font-semibold text-zinc-700 dark:text-zinc-300">Round</th>
565+
<th class="px-2 py-3 text-center font-semibold text-zinc-700 dark:text-zinc-300">Seed</th>
566+
<th class="px-2 py-3 text-center font-semibold text-zinc-700 dark:text-zinc-300 relative before:absolute before:left-0 before:top-0 before:bottom-0 before:w-px before:bg-zinc-300 before:dark:bg-zinc-700">Round</th>
565567
<!-- Tool Calls Section -->
566568
<th class="px-2 py-3 text-center font-semibold text-zinc-700 dark:text-zinc-300 relative before:absolute before:left-0 before:top-0 before:bottom-0 before:w-px before:bg-zinc-300 before:dark:bg-zinc-700">
567569
<div class="flex items-center justify-center space-x-1">

0 commit comments

Comments
 (0)