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