Doc: api_key changes (#2251)

This commit is contained in:
Dev Khant
2025-02-24 10:23:28 +05:30
committed by GitHub
parent edb53209ef
commit 1be0d70d02
6 changed files with 24 additions and 9 deletions

View File

@@ -14,13 +14,17 @@ To use the async client, you first need to initialize it:
<CodeGroup>
```python Python
import os
from mem0 import AsyncMemoryClient
client = AsyncMemoryClient(api_key="your-api-key")
os.environ["MEM0_API_KEY"] = "your-api-key"
client = AsyncMemoryClient()
```
```javascript JavaScript
const { MemoryClient } = require('mem0ai');
const client = new MemoryClient('your-api-key');
const client = new MemoryClient({ apiKey: 'your-api-key'});
```
</CodeGroup>