monacopilot 0.9.28 → 0.9.29

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 +4 -4
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -169,13 +169,13 @@ The `model` option accepts an object with two functions:
169
169
 
170
170
  1. `config`: A function that receives the API key and prompt data, and returns the configuration for the custom model API request.
171
171
 
172
- - `endpoint`: The URL for the custom model's API (required)
173
- - `body`: The request body data for the custom model API (optional)
174
- - `headers`: Additional HTTP headers for the API request (optional)
172
+ - `endpoint`: The URL for the custom model's API.
173
+ - `body`: (optional) The request body data for the custom model API.
174
+ - `headers`: (optional) Additional HTTP headers for the API request.
175
175
 
176
176
  2. `transformResponse`: A function that takes the raw response from the custom model API and converts it into an object with the following structure:
177
177
  - `completion`: A string containing the generated text from the model to be used as the completion.
178
- - `error`: A string describing any error that occurred during the completion process (optional)
178
+ - `error`: (optional) A string describing any error that occurred during the completion process.
179
179
 
180
180
  This structure allows for easy integration of the custom model's output with the rest of the Monacopilot system, providing either the generated completion text or an error message if something went wrong.
181
181
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "monacopilot",
3
- "version": "0.9.28",
3
+ "version": "0.9.29",
4
4
  "description": "AI auto-completion plugin for Monaco Editor",
5
5
  "main": "./build/index.js",
6
6
  "module": "./build/index.mjs",