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: detectCode bug

Daniel Avila95bad60f7dfc
diff --git a/api/app/detectCode.js b/api/app/detectCode.js
index 34de71e6f6..b631d1921e 100644
--- a/api/app/detectCode.js
+++ b/api/app/detectCode.js
@@ -45,7 +45,7 @@ const detectCode = async (input) => {
return (await Promise.all(output)).join('');
} catch (e) {
console.log('Error in detectCode function\n', e);
- return text;
+ return input;
}
};