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
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
positioninput 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