(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
|
```javascript JavaScript
|
||||||
const MemoryClient = require('mem0ai');
|
import MemoryClient from 'mem0ai';
|
||||||
const client = new MemoryClient('your-api-key');
|
const client = new MemoryClient({ apiKey: 'your-api-key' });
|
||||||
```
|
```
|
||||||
|
|
||||||
</CodeGroup>
|
</CodeGroup>
|
||||||
|
|||||||
@@ -58,8 +58,8 @@ client = MemoryClient(api_key="your-api-key")
|
|||||||
```
|
```
|
||||||
|
|
||||||
```javascript JavaScript
|
```javascript JavaScript
|
||||||
const MemoryClient = require('mem0ai');
|
import MemoryClient from 'mem0ai';
|
||||||
const client = new MemoryClient('your-api-key');
|
const client = new MemoryClient({ apiKey: 'your-api-key' });
|
||||||
```
|
```
|
||||||
</CodeGroup>
|
</CodeGroup>
|
||||||
</Accordion>
|
</Accordion>
|
||||||
|
|||||||
Reference in New Issue
Block a user