refac: only generate tags when content is non-empty
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user