fix: Apply consistent color and striped pattern to "Tool call (strict)"

This commit is contained in:
Paul Gauthier (aider) 2024-08-14 20:05:23 -07:00
parent d0e716ea7d
commit 0a2d75b966

View file

@ -31,8 +31,11 @@ document.addEventListener('DOMContentLoaded', function () {
return item ? item.pass_rate_1 : null;
}),
backgroundColor: format === 'Markdown' ? 'rgba(54, 162, 235, 0.8)' :
format === 'Tool call' ? 'rgba(255, 99, 132, 0.8)' :
format.startsWith('Tool call') ? 'rgba(255, 99, 132, 0.8)' :
'rgba(75, 192, 192, 0.8)',
borderColor: format === 'Tool call (strict)' ? 'rgba(255, 255, 255, 0.8)' : null,
borderWidth: format === 'Tool call (strict)' ? 2 : 0,
borderDash: format === 'Tool call (strict)' ? [5, 5] : null,
}));
var data = {