-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Closed
Description
🐛 Describe the bug
Below is my code:
config = {
"vector_store": {
"provider": "qdrant",
"config": {
"collection_name": "test",
"host": "localhost",
"port": 6333,
"embedding_model_dims": 768,
}
},
"llm": {
"provider": "deepseek",
"config": {
"model": "deepseek-chat",
"deepseek_base_url":"https://api.deepseek.com",
"temperature": 0.1,
"max_tokens": 2000,
}
},
"embedder": {
"provider": "gemini",
"config": {
"model": "models/text-embedding-004",
}
}
}
m = Memory.from_config(config)
messages = [
{"role": "user", "content": "I'm planning to watch a movie tonight. Any recommendations?"},
{"role": "assistant", "content": "How about a thriller movies? They can be quite engaging."},
{"role": "user", "content": "I’m not a big fan of thriller movies but I love sci-fi movies."},
{"role": "assistant", "content": "Got it! I'll avoid thriller recommendations and suggest sci-fi movies in the future."}
]
m.add(messages, user_id="wzy")
Report an error:
ERROR:mem0.memory.main:Error iterating new_memories_with_actions: 'list' object has no attribute 'get'
Traceback (most recent call last):
File "f:\huazhi\mem0\mem0\mem0\memory\main.py", line 399, in _add_to_vector_store
for resp in new_memories_with_actions.get("memory", []):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'list' object has no attribute 'get'
New memories with actions: []
Metadata
Metadata
Assignees
Labels
No labels