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

search: helper fn for invalid convoId strings

Daniel Avila75be4d9722e5
diff --git a/api/lib/utils/misc.js b/api/lib/utils/misc.js
new file mode 100644
index 0000000000..a60a14e0d6
--- /dev/null
+++ b/api/lib/utils/misc.js
@@ -0,0 +1,8 @@
+const cleanUpPrimaryKeyValue = (value) => {
+ // For Bing convoId handling
+ return value.replace(/--/g, '-');
+}
+
+module.exports = {
+ cleanUpPrimaryKeyValue,
+}
\ No newline at end of file