remove punctuation from titles

This commit is contained in:
Daniel Avila 2023-03-03 21:31:37 -05:00
parent 42c74f254c
commit 0bec306e59

View file

@ -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;