monacopilot 0.12.6 → 0.12.7

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.
Files changed (2) hide show
  1. package/README.md +3 -3
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -33,7 +33,7 @@
33
33
  - [Custom Model](#custom-model)
34
34
  - [Completion Request Options](#completion-request-options)
35
35
  - [Custom Headers for AI Model Requests](#custom-headers-for-ai-model-requests)
36
- - [Using a Different Language for the API Handler](#using-a-different-language-for-the-api-handler)
36
+ - [Cross-Language API Handler Implementation](#cross-language-api-handler-implementation)
37
37
  - [Contributing](#contributing)
38
38
 
39
39
  ### Examples
@@ -108,7 +108,7 @@ Or in case of an error:
108
108
  }
109
109
  ```
110
110
 
111
- If you prefer to use a different programming language for your API handler in cases where your backend is not in JavaScript, please refer to the section [Using a Different Language for the API Handler](#using-a-different-language-for-the-api-handler) for guidance on implementing the handler in your chosen language.
111
+ If you prefer to use a different programming language for your API handler in cases where your backend is not in JavaScript, please refer to the section [Cross-Language API Handler Implementation](#cross-language-api-handler-implementation) for guidance on implementing the handler in your chosen language.
112
112
 
113
113
  Now, Monacopilot is set up to send completion requests to the `/complete` endpoint and receive completions in response.
114
114
 
@@ -572,7 +572,7 @@ copilot.complete({
572
572
 
573
573
  By using a custom prompt, you can guide the model to generate completions that better fit your coding style, project requirements, or specific technologies you're working with.
574
574
 
575
- ## Using a Different Language for the API Handler
575
+ ## Cross-Language API Handler Implementation
576
576
 
577
577
  While the example in this documentation uses JavaScript/Node.js (which is recommended), you can set up the API handler in any language or framework. For JavaScript, Monacopilot provides a built-in function that handles all the necessary steps, such as generating the prompt, sending it to the model, and processing the response. However, if you're using a different language, you'll need to implement these steps manually. Here's a general approach to implement the handler in your preferred language:
578
578
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "monacopilot",
3
- "version": "0.12.6",
3
+ "version": "0.12.7",
4
4
  "description": "AI auto-completion plugin for Monaco Editor",
5
5
  "main": "./build/index.js",
6
6
  "module": "./build/index.mjs",