Add async support (#2492)

Co-authored-by: Deshraj Yadav <deshrajdry@gmail.com>
This commit is contained in:
Dev Khant
2025-04-10 11:16:44 +05:30
committed by GitHub
parent 44f2490667
commit 616313b8b5
5 changed files with 955 additions and 4 deletions

View File

@@ -28,6 +28,16 @@ from mem0 import Memory
os.environ["OPENAI_API_KEY"] = "your-api-key"
m = Memory()
```
</Tab>
<Tab title="Async">
```python
import os
from mem0 import AsyncMemory
os.environ["OPENAI_API_KEY"] = "your-api-key"
m = AsyncMemory()
```
</Tab>
<Tab title="Advanced">