mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-13 04:45:19 +00:00
refac: only generate tags when content is non-empty
This commit is contained in:
parent
70d0477418
commit
be93081bd7
1 changed files with 1 additions and 1 deletions
|
|
@ -529,7 +529,7 @@
|
|||
if (!details) {
|
||||
showRateComment = true;
|
||||
|
||||
if (!updatedMessage.annotation?.tags) {
|
||||
if (!updatedMessage.annotation?.tags && (message?.content ?? '') !== '') {
|
||||
// attempt to generate tags
|
||||
const tags = await generateTags(localStorage.token, message.model, messages, chatId).catch(
|
||||
(error) => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue