mirror of
https://github.com/open-webui/open-webui
synced 2025-01-18 08:40:58 +00:00
refac
This commit is contained in:
parent
a28ef8acc5
commit
744139d2ce
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user