mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-02 18:54:59 +00:00
feat: add legend for senior models
This commit is contained in:
parent
e83c285d4f
commit
a4df572cfe
1 changed files with 23 additions and 1 deletions
|
@ -162,7 +162,29 @@ aider --o1-preview --senior
|
||||||
text: 'Pass Rate (%)'
|
text: 'Pass Rate (%)'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
plugins: {
|
||||||
|
legend: {
|
||||||
|
display: true,
|
||||||
|
labels: {
|
||||||
|
generateLabels: function(chart) {
|
||||||
|
var colorMapping = {
|
||||||
|
"claude-3.5-sonnet": "rgba(75, 192, 192, 0.2)",
|
||||||
|
"o1-mini": "rgba(255, 99, 132, 0.2)",
|
||||||
|
"gpt-4o": "rgba(54, 162, 235, 0.2)",
|
||||||
|
"o1-preview": "rgba(255, 206, 86, 0.2)"
|
||||||
|
};
|
||||||
|
return Object.keys(colorMapping).map(function(key) {
|
||||||
|
return {
|
||||||
|
text: key,
|
||||||
|
fillStyle: colorMapping[key],
|
||||||
|
strokeStyle: colorMapping[key].replace('0.2', '1'),
|
||||||
|
lineWidth: 1
|
||||||
|
};
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue