Regroup database queries of /sendMessage in one place

Potentially reduces the total queries to database and it will help to migrate to Edge runtime
This commit is contained in:
Baptiste Arnaud
2023-07-18 14:31:20 +02:00
parent 1095cf7f09
commit aa4c16dad7
32 changed files with 520 additions and 482 deletions

View File

@@ -79,6 +79,7 @@ export const executeChatCompletionOpenAIRequest = async ({
logs.push({
status: 'error',
description: `Internal error`,
details: error,
})
return { logs }
}