enh: include base model id in feedback metadata

This commit is contained in:
Timothy J. Baek 2024-10-28 15:07:40 -07:00
parent 21b8ca3459
commit e03e22dd1f

View File

@ -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