mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-17 17:00:15 +01:00
fix: typo in askBingAI.js
This commit is contained in:
parent
55e949578f
commit
474ced1dbe
1 changed files with 3 additions and 3 deletions
|
|
@ -143,7 +143,7 @@ const ask = async ({
|
||||||
} else {
|
} else {
|
||||||
responseMessage.conversationId = response.conversationId;
|
responseMessage.conversationId = response.conversationId;
|
||||||
responseMessage.messageId = response.messageId || response.details.messageId;
|
responseMessage.messageId = response.messageId || response.details.messageId;
|
||||||
response.parentMessageId =
|
responseMessage.parentMessageId =
|
||||||
overrideParentMessageId || response.parentMessageId || response.details.requestId || userMessageId;
|
overrideParentMessageId || response.parentMessageId || response.details.requestId || userMessageId;
|
||||||
responseMessage.sender = 'BingAI';
|
responseMessage.sender = 'BingAI';
|
||||||
}
|
}
|
||||||
|
|
@ -201,7 +201,7 @@ const ask = async ({
|
||||||
res.end();
|
res.end();
|
||||||
|
|
||||||
if (userParentMessageId == '00000000-0000-0000-0000-000000000000') {
|
if (userParentMessageId == '00000000-0000-0000-0000-000000000000') {
|
||||||
const title = await titleConvo({ endpoint: endpointOption?.endpoint, text, response });
|
const title = await titleConvo({ endpoint: endpointOption?.endpoint, text, response: responseMessage });
|
||||||
|
|
||||||
await saveConvo(req?.session?.user?.username, {
|
await saveConvo(req?.session?.user?.username, {
|
||||||
conversationId: conversationId,
|
conversationId: conversationId,
|
||||||
|
|
@ -218,7 +218,7 @@ const ask = async ({
|
||||||
error: true,
|
error: true,
|
||||||
text: error.message
|
text: error.message
|
||||||
};
|
};
|
||||||
await saveBingMessage(errorMessage);
|
await saveMessage(errorMessage);
|
||||||
handleError(res, errorMessage);
|
handleError(res, errorMessage);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue