Skip to content

Mem0 self._store_messages blocks the conversation flow #1741

@lucasrothman

Description

@lucasrothman

pipecat version

0.0.65

Service Name

Mem0

Service or model version

No response

Issue Description

When using the Mem0 memory service the self.store_messages(context_messages) (line 194) seems to be blocking the conversation. This should be refactored to to be called async (or made non-blocking some other way).

Also, the position input param seems to be unused.

Reproduction Steps

Add Mem0MemoryService. Observe that there is a noticeable long pause after logs for storing messages in Mem0 and the LLM service generating chat.

Expected Behavior

The storing of messages should not be blocking, only the retrieving and enhancing of context.

Actual Behavior

Storing the messages seems to be blocking, seems like it's waiting for responses from all the API calls.

Error Logs

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions