# Is long term memory activated by default?

**URL:** https://community.crewai.com/t/is-long-term-memory-activated-by-default/5321
**Category:** CrewAI Community Support
**Tags:** memory
**Created:** [April 14, 2025, 2:28pm UTC](https://community.crewai.com/t/is-long-term-memory-activated-by-default/5321 "2025-04-14T14:28:46Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![kenpachi](https://avatars.discourse-cdn.com/v4/letter/k/87869e/32.png) [@kenpachi](https://community.crewai.com/u/kenpachi)
#### Post date: [April 14, 2025, 2:28pm UTC](https://community.crewai.com/t/is-long-term-memory-activated-by-default/5321/1 "2025-04-14T14:28:46Z")

</div>

Hello,

I was wondering if Long term memory was enabled by default when we activate memory, if it is, how to deactivate it ?

Because in my crew I only use Short term memory and Entity memory but I always have those messages :

- Give Feedback / Get Help: [Sign in to GitHub · GitHub](https://github.com/BerriAI/litellm/issues/new)
- LiteLLM.Info: If you need to debug this error, use `litellm.\_turn\_on\_debug()'.
- Failed to add to long term memory: Failed to convert text into a Pydantic model due to error: litellm.APIError: AzureException APIError - argument of type ‘NoneType’ is not iterable

Here is my config :

```
@crew
def crew(self) -> Crew:
    """Creates the Research Crew"""
    # To learn how to add knowledge sources to your crew, check out the documentation:
    # https://docs.crewai.com/concepts/knowledge#what-is-knowledge

    return Crew(
        agents=[
            ...
        ],
        tasks=[
            ...
        ],
        process=Process.sequential,
        verbose=True,
        output_log_file="checking_crew.log",
        memory=True,
        short_term_memory=ShortTermMemory(
            storage=RAGStorage(
                embedder_config=EMBEDDER_CONFIG,
                type="short_term",
                path="src/csc_flow_analyzer/crews/checking_crew/data/stm",
            )
        ),
        entity_memory = EntityMemory(
            storage=RAGStorage(
                embedder_config=EMBEDDER_CONFIG,
                type="short_term",
                path="src/csc_flow_analyzer/crews/checking_crew/data/em"
            )
        ),
        embedder=EMBEDDER_CONFIG,
    )

```

And even when I enable litellm.\_turn\_on\_debug(), i have no log related to it so I’m a bit confused

---

<div class="post-metadata">

### Author: ![maxmoura](https://sea1.discourse-cdn.com/flex025/user_avatar/community.crewai.com/maxmoura/32/4206_2.png) [@maxmoura](https://community.crewai.com/u/maxmoura)
#### Post date: [April 14, 2025, 2:50pm UTC](https://community.crewai.com/t/is-long-term-memory-activated-by-default/5321/2 "2025-04-14T14:50:21Z")

</div>

> [@kenpachi](#):
>
> I was wondering if Long term memory was enabled by default when we activate memory, if it is, how to deactivate it ?

Yes, as far as I understand, all memory types are automatically enabled when you set `memory=True`, just like I mentioned in another thread:

> [@Mem0 + CrewAI User Personalization](https://community.crewai.com/t/mem0-crewai-user-personalization/5257/2):
>
> Digging into [the `crewai/crew.py` file](https://github.com/crewAIInc/crewAI/blob/main/src/crewai/crew.py), particularly the `create_crew_memory` validator, I noticed that this flag initializes several internal memory components like `ShortTermMemory`, `LongTermMemory`, and `EntityMemory` — even if you only want to use `ExternalMemory`.
> 
> And these other memory components rely on embeddings. So, you’re forced to provide an `embedder` configuration in your Crew setup to keep those components happy.

As far as I know, there’s currently no way to selectively enable or disable individual memory modules.

---

<div class="post-metadata">

### Author: ![kenpachi](https://avatars.discourse-cdn.com/v4/letter/k/87869e/32.png) [@kenpachi](https://community.crewai.com/u/kenpachi)
#### Post date: [April 14, 2025, 5:26pm UTC](https://community.crewai.com/t/is-long-term-memory-activated-by-default/5321/3 "2025-04-14T17:26:58Z")

</div>

So I need to remove it from the validator, right ?

---

<div class="post-metadata">

### Author: ![maxmoura](https://sea1.discourse-cdn.com/flex025/user_avatar/community.crewai.com/maxmoura/32/4206_2.png) [@maxmoura](https://community.crewai.com/u/maxmoura)
#### Post date: [April 14, 2025, 6:30pm UTC](https://community.crewai.com/t/is-long-term-memory-activated-by-default/5321/4 "2025-04-14T18:30:11Z")

</div>

Honestly, I wouldn’t advise modifying a library’s (CrewAI’s) base class unless you’re absolutely certain about everything involved in your changes.

Perhaps a much less risky approach is [opening an issue here](https://github.com/crewAIInc/crewAI/issues).
