mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-17 14:55:23 +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) {
|
if (!details) {
|
||||||
showRateComment = true;
|
showRateComment = true;
|
||||||
|
|
||||||
if (!updatedMessage.annotation?.tags) {
|
if (!updatedMessage.annotation?.tags && (message?.content ?? '') !== '') {
|
||||||
// attempt to generate tags
|
// attempt to generate tags
|
||||||
const tags = await generateTags(localStorage.token, message.model, messages, chatId).catch(
|
const tags = await generateTags(localStorage.token, message.model, messages, chatId).catch(
|
||||||
(error) => {
|
(error) => {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue