(Docs Update) update mem0ai usage examples to use ES6 imports (#2041)
This commit is contained in:
@@ -32,8 +32,8 @@ client = MemoryClient(api_key="your-api-key")
|
||||
```
|
||||
|
||||
```javascript JavaScript
|
||||
const MemoryClient = require('mem0ai');
|
||||
const client = new MemoryClient('your-api-key');
|
||||
import MemoryClient from 'mem0ai';
|
||||
const client = new MemoryClient({ apiKey: 'your-api-key' });
|
||||
```
|
||||
|
||||
</CodeGroup>
|
||||
|
||||
@@ -58,8 +58,8 @@ client = MemoryClient(api_key="your-api-key")
|
||||
```
|
||||
|
||||
```javascript JavaScript
|
||||
const MemoryClient = require('mem0ai');
|
||||
const client = new MemoryClient('your-api-key');
|
||||
import MemoryClient from 'mem0ai';
|
||||
const client = new MemoryClient({ apiKey: 'your-api-key' });
|
||||
```
|
||||
</CodeGroup>
|
||||
</Accordion>
|
||||
|
||||
Reference in New Issue
Block a user