2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-10-03 17:21:20 +08:00
discourse/plugins/discourse-ai/assets/javascripts/discourse/components/model-accuracies.gjs
Jarek Radosz 16c0838575
DEV: Reapply gjs-codemod in d-ai (#33758)
…and apply other mass-pr autofixes
2025-07-23 12:05:40 +02:00

20 lines
576 B
Text

import { i18n } from "discourse-i18n";
const ModelAccuracies = <template>
{{#if @accuracies}}
<table class="reviewable-scores">
<tbody>
{{#each-in @accuracies as |model acc|}}
<tr>
<td colspan="4">{{i18n "discourse_ai.reviewables.model_used"}}</td>
<td colspan="3">{{model}}</td>
<td colspan="4">{{i18n "discourse_ai.reviewables.accuracy"}}</td>
<td colspan="3">{{acc}}%</td>
</tr>
{{/each-in}}
</tbody>
</table>
{{/if}}
</template>;
export default ModelAccuracies;