monacopilot 0.18.8 → 0.18.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -21,13 +21,13 @@ Add GitHub Copilot-style AI completions to your Monaco Editor in minutes! 🚀
|
|
|
21
21
|
|
|
22
22
|
### Quick Start (3 Simple Steps)
|
|
23
23
|
|
|
24
|
-
|
|
24
|
+
#### Install the package
|
|
25
25
|
|
|
26
26
|
```bash
|
|
27
27
|
npm install monacopilot
|
|
28
28
|
```
|
|
29
29
|
|
|
30
|
-
|
|
30
|
+
#### Register the AI completion to your editor
|
|
31
31
|
|
|
32
32
|
In your frontend code:
|
|
33
33
|
|
|
@@ -46,9 +46,9 @@ registerCompletion(monaco, editor, {
|
|
|
46
46
|
});
|
|
47
47
|
```
|
|
48
48
|
|
|
49
|
-
|
|
49
|
+
#### Create your completion API handler
|
|
50
50
|
|
|
51
|
-
Create an API handler for the endpoint (e.g.
|
|
51
|
+
Create an API handler for the endpoint (e.g. `/code-completion`) you provided in the `registerCompletion` function to handle completion requests from the editor.
|
|
52
52
|
|
|
53
53
|
Example using Express.js:
|
|
54
54
|
|