chore(api): update chatgpt-api dependency to version 1.34.0

feat(api): use gen_title response for askChatGPTBrowser.js (official title)
This commit is contained in:
Daniel Avila 2023-04-05 21:34:39 -04:00
parent 385eb2f398
commit 017447b064
3 changed files with 10 additions and 9 deletions

View file

@ -154,7 +154,8 @@ const ask = async ({
res.end();
if (userParentMessageId == '00000000-0000-0000-0000-000000000000') {
const title = await titleConvo({ endpoint: endpointOption?.endpoint, text, response: responseMessage });
// const title = await titleConvo({ endpoint: endpointOption?.endpoint, text, response: responseMessage });
const title = await response.details.title;
await updateConvo(req?.session?.user?.username, {
conversationId: conversationId,
title