mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-20 18:30:15 +01:00
fix: jailbreakConversationId=false response will be saved jailbreakConversationId='false' in database.
This commit is contained in:
parent
27515cb00a
commit
7168498543
2 changed files with 6 additions and 2 deletions
|
|
@ -22,8 +22,10 @@ const askBing = async ({ text, progressCallback, convo }) => {
|
||||||
options = { ...options, ...convo };
|
options = { ...options, ...convo };
|
||||||
}
|
}
|
||||||
|
|
||||||
const res = await bingAIClient.sendMessage(text, options
|
if (options?.jailbreakConversationId == 'false')
|
||||||
);
|
options.jailbreakConversationId = false
|
||||||
|
|
||||||
|
const res = await bingAIClient.sendMessage(text, options);
|
||||||
|
|
||||||
return res;
|
return res;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -64,6 +64,8 @@ module.exports = {
|
||||||
if (title) {
|
if (title) {
|
||||||
update.title = title;
|
update.title = title;
|
||||||
}
|
}
|
||||||
|
if (!update.jailbreakConversationId)
|
||||||
|
update.jailbreakConversationId = null
|
||||||
|
|
||||||
return await Conversation.findOneAndUpdate(
|
return await Conversation.findOneAndUpdate(
|
||||||
{ conversationId },
|
{ conversationId },
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue