chatgpt now titles conversations

This commit is contained in:
Danny Avila 2023-03-02 13:52:41 -05:00
parent 897c384ac9
commit c4d0787b49
4 changed files with 31 additions and 8 deletions

View file

@ -87,7 +87,7 @@ router.post('/', async (req, res) => {
}
if (!parentMessageId) {
gptResponse.title = await titleConvo(text, JSON.stringify(gptResponse.text), model);
gptResponse.title = await titleConvo({ model, message: text, response: JSON.stringify(gptResponse.text) });
}
gptResponse.sender = model;
gptResponse.final = true;