fix: rate responses

This commit is contained in:
Timothy J. Baek
2024-09-24 14:02:41 +02:00
parent 85e9e231ed
commit 299b3d72cf
2 changed files with 15 additions and 8 deletions
@@ -1035,11 +1035,17 @@
{#if message.done && showRateComment}
<RateComment
messageId={message.id}
bind:show={showRateComment}
bind:message
bind:show={showRateComment}
on:submit={(e) => {
dispatch('update');
dispatch('save', {
...message,
annotation: {
...message.annotation,
comment: e.detail.comment,
reason: e.detail.reason
}
});
(model?.actions ?? [])
.filter((action) => action?.__webui__ ?? false)
.forEach((action) => {