mirror of
https://github.com/open-webui/open-webui
synced 2025-04-01 16:13:25 +00:00
refac
This commit is contained in:
parent
42a58da487
commit
205402e096
@ -416,15 +416,12 @@
|
|||||||
|
|
||||||
if (!updatedMessage.annotation?.tags) {
|
if (!updatedMessage.annotation?.tags) {
|
||||||
// attempt to generate tags
|
// attempt to generate tags
|
||||||
const tags = await generateTags(
|
const tags = await generateTags(localStorage.token, message.model, messages, chatId).catch(
|
||||||
localStorage.token,
|
(error) => {
|
||||||
message?.selectedModelId ?? message.model,
|
console.error(error);
|
||||||
messages,
|
return [];
|
||||||
chatId
|
}
|
||||||
).catch((error) => {
|
);
|
||||||
console.error(error);
|
|
||||||
return [];
|
|
||||||
});
|
|
||||||
console.log(tags);
|
console.log(tags);
|
||||||
|
|
||||||
if (tags) {
|
if (tags) {
|
||||||
|
Loading…
Reference in New Issue
Block a user