#Memory not working

1 messages · Page 1 of 1 (latest)

gloomy pond
#

~~It appears that the memory agent is not working.
I have followed the troubleshooting steps in https://www.librechat.ai/docs/features/memory#troubleshooting

I have configured it as follows:

memory:
  disabled: false
  validKeys:
    - "preferences"
    - "work_info"
    - "personal_info"
    - "skills"
    - "interests"
    - "context"
  tokenLimit: 2000
  personalize: true
  messageWindowSize: 5
  agent:
    provider: "openAI"
    model: "gpt-4.1-mini"
    instructions: |
      You are a memory management assistant. Store and manage user information accurately.
      Delete outdated or incorrect information promptly.
    model_parameters:
      temperature: 0.25

Memory is enabled in the chat interface (see screenshot). However, no matter what I say, the agent is never triggered, and OpenAI's logs don't show any activity on the configured memory agent model (gpt-4.1-mini).

Using version LibreChat git tag v0.8.2~~

Issue resolved, the config was being rejected due to a duplicate section.

gloomy pond
#

Doing some manual debugging, found that the !memoryConfig || memoryConfig.disabled === true statement is not passing inside useMemory(). Looks like there's no memoryConfig at all... Still digging

gloomy pond
#

Seems like that's supposed to come from the client, the trail ends on the endpoints on the API side. Will check client code tomorrow

solemn zealot
gloomy pond
#

Figured it out, the config was being rejected due to a duplicate section. I removed it and now it loads correctly, memory now works.

#

@solemn zealot

solemn zealot
gloomy pond
#

I can't, really. In my case, I just had two "endpoints:" sections in my librechat.yaml file. You can check if you have something similar, or perhaps another duplicate

#

Also, I lied, I didn't figure it out. VS Code's Copilot agent did, lol

solemn zealot
#

ok, let me see 👀

solemn zealot
#

cause...in the beginning i didnt even have a librechat.yaml file? And I thought that was the problem. So, I copied the librechat-example.yaml, then enabled the memory function, but nothing changed...but i dont think i've messed with any other settings...

gloomy pond
#

It was my fault

solemn zealot
# gloomy pond It was my fault

Yeah I dont think I see any duplicates. And this was like, out of the box. Do you have any idea of what might be going wrong on my end?

gloomy pond
#

I'd check the logs

solemn zealot
gloomy pond
#

The logs folder in LibreChat directory

solemn zealot
#

but I'm not sure how to interpret them

gloomy pond
#

Well, try the AI