Skip to content

Commit fb10b2f

Browse files
committed
fix: use esNext
1 parent 9e1875d commit fb10b2f

File tree

2 files changed

+4
-14
lines changed

2 files changed

+4
-14
lines changed

snippets/ai/README.md

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -23,22 +23,12 @@ This currently supports 5 different AI providers: `docs, openai | mistral | atla
2323
You can install this snippet using the `snippet` command in mongosh:
2424

2525
```javascript
26-
config.set('snippetIndexSourceURLs',
27-
'https://github.com/gagik/mongosh-snippets/raw/refs/heads/ai/index.bson.br;'
28-
+ config.get('snippetIndexSourceURLs') )
26+
config.set('snippetIndexSourceURLs', config.get('snippetIndexSourceURLs') +
27+
'; https://github.com/gagik/mongosh-snippets/raw/refs/heads/ai/index.bson.br'
28+
)
2929
snippet install ai
3030
```
3131

32-
## Troubleshooting
33-
34-
If you get the error:
35-
```
36-
"Error: Cannot find module 'groq-sdk'"
37-
```
38-
then, go to your $USER/.mongodb/mongosh/snippets/node_modules/@juananpe/snippets-llm-command folder
39-
and run `npm install`. Then close and open mongosh again.
40-
41-
4232
## License
4333

4434
This snippet is licensed under the Apache-2.0 license.

snippets/ai/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@gagik.co/snippet-ai",
33
"snippetName": "ai",
4-
"version": "0.0.1",
4+
"version": "0.0.2",
55
"description": "Provides a ai command suite for mongosh to ask for MongoDB query expressions in natural language.",
66
"author": "Gagik Amaryan",
77
"main": "dist/index.js",

0 commit comments

Comments
 (0)