mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-07-21 22:53:56 +08:00
fix: 修复Mem0AI记忆模式工具调用时保存记忆400错误
This commit is contained in:
@@ -38,8 +38,14 @@ class MemoryProvider(MemoryProviderBase):
|
|||||||
if message.role == "system":
|
if message.role == "system":
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
if message.role == "tool":
|
||||||
|
continue
|
||||||
|
|
||||||
content = message.content
|
content = message.content
|
||||||
|
|
||||||
|
if content is None:
|
||||||
|
continue
|
||||||
|
|
||||||
# Extract content from JSON format if present (for ASR with emotion/language tags)
|
# Extract content from JSON format if present (for ASR with emotion/language tags)
|
||||||
# Same logic as in query_memory method
|
# Same logic as in query_memory method
|
||||||
try:
|
try:
|
||||||
|
|||||||
Reference in New Issue
Block a user