mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-26 04:39:53 +01:00
fix: 修复Mem0AI记忆模式工具调用时保存记忆400错误
This commit is contained in:
parent
3510282cd5
commit
70740af7a6
1 changed files with 6 additions and 0 deletions
|
|
@ -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:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue