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