{#if message?.arena}
{$i18n.t('This response was generated by "{{model}}"', { model: selectedModel ? (selectedModel?.name ?? selectedModel.id) : message.selectedModelId, })}
{/if}
{$i18n.t("How would you rate this response?")}
{ show = false; }} >
{#each Array.from( { length: 10 }, ).map((_, i) => i + 1) as rating}
{ detailedRating = rating; }} disabled={message?.annotation?.rating === -1 ? rating > 5 : rating < 6} > {rating}
{/each}
1 - {$i18n.t("Awful")}
10 - {$i18n.t("Amazing")}
{#if reasons.length > 0}
{$i18n.t("Why?")}
{#each reasons as reason}
{ selectedReason = reason; }} > {#if reason === "accurate_information"} {$i18n.t("Accurate information")} {:else if reason === "followed_instructions_perfectly"} {$i18n.t("Followed instructions perfectly")} {:else if reason === "showcased_creativity"} {$i18n.t("Showcased creativity")} {:else if reason === "positive_attitude"} {$i18n.t("Positive attitude")} {:else if reason === "attention_to_detail"} {$i18n.t("Attention to detail")} {:else if reason === "thorough_explanation"} {$i18n.t("Thorough explanation")} {:else if reason === "dont_like_the_style"} {$i18n.t("Don't like the style")} {:else if reason === "too_verbose"} {$i18n.t("Too verbose")} {:else if reason === "not_helpful"} {$i18n.t("Not helpful")} {:else if reason === "not_factually_correct"} {$i18n.t("Not factually correct")} {:else if reason === "didnt_fully_follow_instructions"} {$i18n.t("Didn't fully follow instructions")} {:else if reason === "refused_when_it_shouldnt_have"} {$i18n.t("Refused when it shouldn't have")} {:else if reason === "being_lazy"} {$i18n.t("Being lazy")} {:else if reason === "other"} {$i18n.t("Other")} {:else} {reason} {/if}
{/each}
{/if}
{ tags = tags.filter( (tag) => tag.name.replaceAll(" ", "_").toLowerCase() !== e.detail.replaceAll(" ", "_").toLowerCase(), ); }} on:add={(e) => { tags = [...tags, { name: e.detail }]; }} />
{ saveHandler(); }} > {$i18n.t("Save")}
{#if $config?.features.enable_community_sharing && message?.model}
{$i18n.t("Leave a public review for {{modelName}}", { modelName: message.model, })}
{$i18n.t("Help the community discover great models")}
{/if}