mirror of
https://github.com/open-webui/open-webui
synced 2025-01-18 00:30:51 +00:00
refac
This commit is contained in:
parent
a28ef8acc5
commit
744139d2ce
@ -360,6 +360,8 @@
|
||||
return;
|
||||
}
|
||||
|
||||
const messages = createMessagesList(history, message.id);
|
||||
|
||||
let feedbackItem = {
|
||||
type: 'rating',
|
||||
data: {
|
||||
@ -377,7 +379,7 @@
|
||||
arena: message ? message.arena : false,
|
||||
model_id: message.model,
|
||||
message_id: message.id,
|
||||
message_index: createMessagesList(history, message.id).length,
|
||||
message_index: messages.length,
|
||||
chat_id: chatId
|
||||
},
|
||||
snapshot: {
|
||||
@ -414,7 +416,6 @@
|
||||
|
||||
if (!updatedMessage.annotation?.tags) {
|
||||
// attempt to generate tags
|
||||
const messages = createMessagesList(history, message.id);
|
||||
const tags = await generateTags(
|
||||
localStorage.token,
|
||||
message?.selectedModelId ?? message.model,
|
||||
|
Loading…
Reference in New Issue
Block a user