mirror of
https://github.com/open-webui/open-webui
synced 2024-11-22 08:07:55 +00:00
Merge pull request #6521 from open-webui/main
enh: include base model id in feedback metadata
This commit is contained in:
commit
489a69673f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user