Skip to content

Commit

Permalink
(Docs Update) update mem0ai usage examples to use ES6 imports (#2041)
Browse files Browse the repository at this point in the history
  • Loading branch information
whysosaket authored Nov 21, 2024
1 parent 4b8e328 commit 8c087fc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/platform/quickstart.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
4 changes: 2 additions & 2 deletions docs/quickstart.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 8c087fc

Please sign in to comment.