Merge pull request #6521 from open-webui/main

enh: include base model id in feedback metadata
This commit is contained in:
Timothy Jaeryang Baek 2024-10-28 15:09:31 -07:00 committed by GitHub
commit 489a69673f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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