feat(api): add support for saving messages to database

fix(api): change arrowParens prettier option to always
fix(api): update addToCache to include endpointOption and latestMessage
fix(api): update askOpenAI to include endpointOption in abortControllers
fix(client): remove abortKey state and add currentParent state to MessageHandler
This commit is contained in:
Daniel Avila 2023-04-09 11:17:08 -04:00
parent 6246ffff1e
commit a81bd27b39
5 changed files with 78 additions and 32 deletions

View file

@ -12,6 +12,7 @@ module.exports = {
error
}) => {
try {
// may also need to update the conversation here
await Message.findOneAndUpdate(
{ messageId },
{