You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Following the mem0 getting started guide just fails.
from mem0 import MemoryClient
#os.environ["OPENAI_API_KEY"] = os.getenv("OPENAI_API_KEY")
client = MemoryClient(api_key="m0-AFawByIj1vSI5tMocpXtk7BoJKVm0pXzVLo3MMkV")
messages = [
{"role": "user", "content": "Hi, I'm Alex. I'm a vegetarian and I'm allergic to nuts."},
{"role": "assistant", "content": "Hello Alex! I've noted that you're a vegetarian and have a nut allergy. I'll keep this in mind for any food-related recommendations or discussions."}
]
client.add(messages, user_id="alex")
query = "What can I cook for dinner tonight?"
client.search(query, user_id="alex")
And I get the following exception:
mem0/configs/llms/base.py", line 22, in BaseLlmConfig
models: Optional[list[str]] = None,
TypeError: 'type' object is not subscriptable
The text was updated successfully, but these errors were encountered:
🐛 Describe the bug
Following the mem0 getting started guide just fails.
And I get the following exception:
The text was updated successfully, but these errors were encountered: