refac: only generate tags when content is non-empty

This commit is contained in:
Timothy Jaeryang Baek 2025-08-18 23:36:11 +04:00
parent 70d0477418
commit be93081bd7

View file

@ -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) => {