Skip to content

Enhanced ChatGPT Clone: Features Agents, MCP, Skills, DeepSeek, Anthropic, AWS, OpenAI, Responses API, Azure, Groq, o1, GPT-5, Mistral, OpenRouter, Vertex AI, Gemini, Artifacts, AI model switching, message search, Code Interpreter, langchain, DALL-E-3, OpenAPI Actions, Functions, Secure Multi-User Auth, Presets, open-source for self-hosting. Active

fix: jailbreakConversationId=false response will be saved jailbreakConversationId='false' in database.

Wentao Lyu716849854329
diff --git a/api/app/bingai.js b/api/app/bingai.js
index d1175c0bfc..2ccbc2b356 100644
--- a/api/app/bingai.js
+++ b/api/app/bingai.js
@@ -22,8 +22,10 @@ const askBing = async ({ text, progressCallback, 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;
diff --git a/api/models/Conversation.js b/api/models/Conversation.js
index 1c994fdc38..d2ead788d2 100644
--- a/api/models/Conversation.js
+++ b/api/models/Conversation.js
@@ -64,6 +64,8 @@ module.exports = {
if (title) {
update.title = title;
}
+ if (!update.jailbreakConversationId)
+ update.jailbreakConversationId = null
return await Conversation.findOneAndUpdate(
{ conversationId },