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
TypeScript aianthropicartifactsawsazurechatgptchatgpt-cloneclaudeclonedeepseekgeminigooglegpt-5librechatmcpo1openairesponses-apivisionwebui
🧠 fix: Prevent Memory Errors with Buffer String (#8196)
Danny Avila07e08143e4a7
diff --git a/api/server/controllers/agents/client.js b/api/server/controllers/agents/client.jsindex 87fb053479..1bdf809d91 100644--- a/api/server/controllers/agents/client.js+++ b/api/server/controllers/agents/client.js@@ -525,7 +525,10 @@ class AgentClient extends BaseClient {messagesToProcess = [...messages.slice(-messageWindowSize)];}}- return await this.processMemory(messagesToProcess);++ const bufferString = getBufferString(messagesToProcess);+ const bufferMessage = new HumanMessage(`# Current Chat:\n\n${bufferString}`);+ return await this.processMemory([bufferMessage]);} catch (error) {logger.error('Memory Agent failed to process memory', error);}