From e03e22dd1f599530cbe55c40bdb438b9c0adb376 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Mon, 28 Oct 2024 15:07:40 -0700 Subject: [PATCH] enh: include base model id in feedback metadata --- src/lib/components/chat/Messages/ResponseMessage.svelte | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lib/components/chat/Messages/ResponseMessage.svelte b/src/lib/components/chat/Messages/ResponseMessage.svelte index 731ab87ee..10d3b54de 100644 --- a/src/lib/components/chat/Messages/ResponseMessage.svelte +++ b/src/lib/components/chat/Messages/ResponseMessage.svelte @@ -362,6 +362,8 @@ const messages = createMessagesList(history, message.id); + const baseModelId = $models.find((m) => m.id === message.model)?.info?.base_model_id ?? null; + let feedbackItem = { type: 'rating', data: { @@ -378,6 +380,7 @@ meta: { arena: message ? message.arena : false, model_id: message.model, + ...(baseModelId ? { base_model_id: baseModelId } : {}), message_id: message.id, message_index: messages.length, chat_id: chatId