mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-07-21 02:45:36 +00:00
fix: 修复Mem0AI记忆模式工具调用时保存记忆400错误
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user