This commit is contained in:
Timothy J. Baek 2024-10-24 00:35:27 -07:00
parent a28ef8acc5
commit 744139d2ce

View File

@ -360,6 +360,8 @@
return; return;
} }
const messages = createMessagesList(history, message.id);
let feedbackItem = { let feedbackItem = {
type: 'rating', type: 'rating',
data: { data: {
@ -377,7 +379,7 @@
arena: message ? message.arena : false, arena: message ? message.arena : false,
model_id: message.model, model_id: message.model,
message_id: message.id, message_id: message.id,
message_index: createMessagesList(history, message.id).length, message_index: messages.length,
chat_id: chatId chat_id: chatId
}, },
snapshot: { snapshot: {
@ -414,7 +416,6 @@
if (!updatedMessage.annotation?.tags) { if (!updatedMessage.annotation?.tags) {
// attempt to generate tags // attempt to generate tags
const messages = createMessagesList(history, message.id);
const tags = await generateTags( const tags = await generateTags(
localStorage.token, localStorage.token,
message?.selectedModelId ?? message.model, message?.selectedModelId ?? message.model,