Merge pull request #3139 from xinnan-tech/py-fix-mem0ai

fix: 修复Mem0AI记忆模式工具调用时保存记忆400错误
This commit is contained in:
wengzh 2026-04-27 16:57:26 +08:00 committed by GitHub
commit cd580b6f81
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -38,8 +38,14 @@ class MemoryProvider(MemoryProviderBase):
if message.role == "system":
continue
if message.role == "tool":
continue
content = message.content
if content is None:
continue
# Extract content from JSON format if present (for ASR with emotion/language tags)
# Same logic as in query_memory method
try: