From 205402e096198e6c32ed17854c72e213289ddd7f Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Thu, 24 Oct 2024 01:01:00 -0700 Subject: [PATCH] refac --- .../chat/Messages/ResponseMessage.svelte | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/src/lib/components/chat/Messages/ResponseMessage.svelte b/src/lib/components/chat/Messages/ResponseMessage.svelte index 37259c605..731ab87ee 100644 --- a/src/lib/components/chat/Messages/ResponseMessage.svelte +++ b/src/lib/components/chat/Messages/ResponseMessage.svelte @@ -416,15 +416,12 @@ if (!updatedMessage.annotation?.tags) { // attempt to generate tags - const tags = await generateTags( - localStorage.token, - message?.selectedModelId ?? message.model, - messages, - chatId - ).catch((error) => { - console.error(error); - return []; - }); + const tags = await generateTags(localStorage.token, message.model, messages, chatId).catch( + (error) => { + console.error(error); + return []; + } + ); console.log(tags); if (tags) {