From 9c2d592c73137dceded67dea8b18ca24ad52abef Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Thu, 24 Oct 2024 00:23:31 -0700 Subject: [PATCH] enh: include message_turn metadata --- src/lib/components/chat/Messages/ResponseMessage.svelte | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/components/chat/Messages/ResponseMessage.svelte b/src/lib/components/chat/Messages/ResponseMessage.svelte index 870edfbd0..cc4cd4297 100644 --- a/src/lib/components/chat/Messages/ResponseMessage.svelte +++ b/src/lib/components/chat/Messages/ResponseMessage.svelte @@ -377,7 +377,8 @@ arena: message ? message.arena : false, model_id: message.model, message_id: message.id, - chat_id: chatId + chat_id: chatId, + message_turn: createMessagesList(history, message.id).length }, snapshot: { chat: chat