From be93081bd79d7b63bec39837bb596ee9107a6e04 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Mon, 18 Aug 2025 23:36:11 +0400 Subject: [PATCH] refac: only generate tags when content is non-empty --- src/lib/components/chat/Messages/ResponseMessage.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/components/chat/Messages/ResponseMessage.svelte b/src/lib/components/chat/Messages/ResponseMessage.svelte index 5055cba674..fcbcb7d1ef 100644 --- a/src/lib/components/chat/Messages/ResponseMessage.svelte +++ b/src/lib/components/chat/Messages/ResponseMessage.svelte @@ -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) => {