mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-13 21:05:19 +00:00
refac
This commit is contained in:
parent
42a58da487
commit
205402e096
1 changed files with 6 additions and 9 deletions
|
|
@ -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 a new issue