From 0bec306e599ad8a844502367cce84493db9f5faf Mon Sep 17 00:00:00 2001 From: Daniel Avila Date: Fri, 3 Mar 2023 21:31:37 -0500 Subject: [PATCH] remove punctuation from titles --- app/titleConvo.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/titleConvo.js b/app/titleConvo.js index 89fafff0a2..f793075d98 100644 --- a/app/titleConvo.js +++ b/app/titleConvo.js @@ -17,7 +17,8 @@ const titleConvo = async ({ message, response, model }) => { ] }); - return completion.data.choices[0].message.content.replace(/"/g, ''); + //eslint-disable-next-line + return completion.data.choices[0].message.content.replace(/["\.]/g, ''); }; module.exports = titleConvo;