Fabelous-Autocoder/package.json

146 lines
4.9 KiB
JSON
Raw Normal View History

2023-12-20 09:36:55 +00:00
{
"name": "fabelous-autocoder",
"displayName": "Fabelous Autocoder",
2023-12-21 00:30:34 +00:00
"description": "A simple to use Ollama autocompletion engine with options exposed and streaming functionality",
2024-06-02 14:48:14 +00:00
"version": "0.0.3",
"icon": "icon.png",
"publisher": "fabel",
"license": "CC BY-ND 4.0",
2023-12-22 07:52:29 +00:00
"bugs": {
"url": "https://gitea.fabelous.app/fabel/Fabelous-Autocoder/issues"
2023-12-22 07:52:29 +00:00
},
"sponsor": {
"url": "https://ko-fi.com/natehedge"
},
2023-12-20 09:36:55 +00:00
"repository": {
"type": "git",
"url": "https://gitea.fabelous.app/fabel/Fabelous-Autocoder"
2023-12-20 09:36:55 +00:00
},
"engines": {
"vscode": "^1.89.0"
2023-12-20 09:36:55 +00:00
},
"categories": [
"Machine Learning",
"Snippets",
"Programming Languages"
],
"keywords": [
"ollama",
"gpt",
"coding",
"autocomplete",
"open source",
"assistant",
"ai",
"llm"
2023-12-20 09:36:55 +00:00
],
2023-12-22 08:03:11 +00:00
"galleryBanner": {
"color": "#f5ead1"
},
2023-12-20 09:36:55 +00:00
"activationEvents": [
"onStartupFinished"
2023-12-20 09:36:55 +00:00
],
"main": "./out/extension.js",
"contributes": {
"configuration": {
2024-06-02 14:48:14 +00:00
"title": "Fabelous Autocoder",
"properties": {
2024-06-02 14:48:14 +00:00
"fabelous-autocoder.endpoint": {
"type": "string",
"default": "http://localhost:11434/api/generate",
"description": "The endpoint of the ollama REST API"
},
2024-06-02 14:48:14 +00:00
"fabelous-autocoder.authentication": {
"type": "string",
"default": "",
"description": "Authorization Token for Ollama"
},
2024-06-02 14:48:14 +00:00
"fabelous-autocoder.model": {
"type": "string",
2024-06-02 14:48:14 +00:00
"default": "",
"description": "The model to use for generating completions"
},
2024-06-02 14:48:14 +00:00
"fabelous-autocoder.message header": {
"type": "string",
"editPresentation": "multilineText",
"default": "The following is a complete {LANG} file named {FILE_NAME} in the project {PROJECT_NAME}. Anything NOT code is written as a CODE COMMENT. \n\n```\n",
"description": "Pseudo-system prompt, optimized for code completion. It is recommended to keep the format the same if modified. Leave blank for no formatting (raw)."
},
2024-06-02 14:48:14 +00:00
"fabelous-autocoder.max tokens predicted": {
"type": "integer",
"default": 1000,
"description": "The maximum number of tokens generated by the model."
},
2024-06-02 14:48:14 +00:00
"fabelous-autocoder.prompt window size": {
"type": "integer",
"default": 2000,
"description": "The size of the prompt in characters. NOT tokens, so can be set about 1.5-2x the max tokens of the model (varies)."
},
2024-06-02 14:48:14 +00:00
"fabelous-autocoder.completion keys": {
"type": "string",
"default": " ",
"description": "Character that the autocompletion item provider appear on. Multiple characters will be treated as different entries. REQUIRES RELOAD"
},
2024-06-02 14:48:14 +00:00
"fabelous-autocoder.response preview": {
"type": "boolean",
"default": true,
"description": "Inline completion label will be the first line of response. Max is 10 tokens, but this is unlikely to be reached. If the first line is empty, the default label will be used. Not streamable, disable on slow devices."
},
2024-06-02 14:48:14 +00:00
"fabelous-autocoder.preview max tokens": {
"type": "integer",
"default": 50,
"description": "The maximum number of tokens generated by the model for the response preview. Typically not reached as the preview stops on newline. Recommended to keep very low due to computational cost."
2024-01-28 02:22:47 +00:00
},
2024-06-02 14:48:14 +00:00
"fabelous-autocoder.preview delay": {
2024-01-28 02:22:47 +00:00
"type": "number",
"default": 1,
"description": "Time to wait in seconds before starting inline preview generation. Prevents Ollama server from running briefly every time the completion key is pressed, which causes unnecessary compute usage. If you are not on a battery powered device, set this to 0 for a more responsive experience."
},
2024-06-02 14:48:14 +00:00
"fabelous-autocoder.continue inline": {
2024-01-28 02:22:47 +00:00
"type": "boolean",
"default": true,
"description": "Ollama continues autocompletion after what is previewed inline. Disabling disables that feature as some may find it irritating. Multiline completion is still accessible through the shortcut even after disabling."
},
2024-06-02 14:48:14 +00:00
"fabelous-autocoder.temperature": {
"type": "number",
"default": 0.5,
"description": "Temperature of the model. It is recommended to set it lower than you would for dialogue."
},
2024-06-02 14:48:14 +00:00
"fabelous-autocoder.keep alive": {
"type": "number",
"default": 10,
"description": "Time in minutes before Ollama unloads the model."
},
2024-06-02 14:48:14 +00:00
"fabelous-autocoder.top p": {
"type": "number",
"description": "Top p sampling for the model."
}
}
},
"commands": [
{
"command": "fabelous-autocoder.autocomplete",
"title": "Autocompletion with Ollama"
}
]
},
2023-12-20 09:36:55 +00:00
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc --skipLibCheck -p ./",
"package": "npm run compile && vsce package",
2023-12-20 09:36:55 +00:00
"lint": "eslint \"src/**/*.ts\"",
"watch": "tsc --skipLibCheck -watch -p ./"
2023-12-20 09:36:55 +00:00
},
"devDependencies": {
"@types/node": "^20.12.8",
"@types/vscode": "^1.89.0",
"@typescript-eslint/eslint-plugin": "^7.8.0",
"@typescript-eslint/parser": "^7.8.0",
"eslint": "^8.57.0",
"typescript": "^5.4.5"
2023-12-20 09:36:55 +00:00
},
"dependencies": {
"axios": "^1.6.8"
2023-12-20 09:36:55 +00:00
}
}