mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-18 17:30:16 +01:00
persist bing ai conversation
This commit is contained in:
parent
81e52fed73
commit
7b7548c905
4 changed files with 28 additions and 8 deletions
|
|
@ -49,8 +49,8 @@ router.post('/bing', async (req, res) => {
|
|||
convo
|
||||
});
|
||||
|
||||
console.log('CLIENT RESPONSE');
|
||||
console.dir(response, { depth: null });
|
||||
// console.log('CLIENT RESPONSE');
|
||||
// console.dir(response, { depth: null });
|
||||
|
||||
userMessage.conversationSignature =
|
||||
convo.conversationSignature || response.conversationSignature;
|
||||
|
|
@ -72,7 +72,7 @@ router.post('/bing', async (req, res) => {
|
|||
|
||||
response.text = response.response;
|
||||
response.id = response.details.messageId;
|
||||
response.suggestions = response.details.suggestedResponses.map((s) => s.text);
|
||||
response.suggestions = response.details.suggestedResponses && response.details.suggestedResponses.map((s) => s.text);
|
||||
response.sender = model;
|
||||
response.final = true;
|
||||
await saveMessage(response);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue