You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
dumbpilot/package.json

267 lines
8.9 KiB

1 year ago
{
"name": "dumbpilot",
"displayName": "dumbpilot",
"description": "Simple code prediction using llama.cpp server api",
"publisher": "Alessandro Mauri",
1 year ago
"version": "0.0.1",
"engines": {
"vscode": "^1.84.0"
},
"categories": [
"Other"
],
"activationEvents": [
"onLanguage:ada",
"onLanguage:agda",
"onLanguage:alloy",
"onLanguage:antlr",
"onLanguage:applescript",
"onLanguage:assembly",
"onLanguage:augeas",
"onLanguage:awk",
"onLanguage:batchfile",
"onLanguage:bluespec",
"onLanguage:c-sharp",
"onLanguage:c",
"onLanguage:clojure",
"onLanguage:cmake",
"onLanguage:coffeescript",
"onLanguage:common-lisp",
"onLanguage:cpp",
"onLanguage:css",
"onLanguage:cuda",
"onLanguage:dart",
"onLanguage:dockerfile",
"onLanguage:elixir",
"onLanguage:elm",
"onLanguage:emacs-lisp",
"onLanguage:erlang",
"onLanguage:f-sharp",
"onLanguage:fortran",
"onLanguage:glsl",
"onLanguage:go",
"onLanguage:groovy",
"onLanguage:haskell",
"onLanguage:html",
"onLanguage:idris",
"onLanguage:isabelle",
"onLanguage:java-server-pages",
"onLanguage:java",
"onLanguage:javascript",
"onLanguage:json",
"onLanguage:julia",
"onLanguage:jupyter-notebook",
"onLanguage:kotlin",
"onLanguage:lean",
"onLanguage:literate-agda",
"onLanguage:literate-coffeescript",
"onLanguage:literate-haskell",
"onLanguage:lua",
"onLanguage:makefile",
"onLanguage:maple",
"onLanguage:markdown",
"onLanguage:mathematica",
"onLanguage:matlab",
"onLanguage:ocaml",
"onLanguage:pascal",
"onLanguage:perl",
"onLanguage:php",
"onLanguage:powershell",
"onLanguage:prolog",
"onLanguage:protocol-buffer",
"onLanguage:python",
"onLanguage:r",
"onLanguage:racket",
"onLanguage:restructuredtext",
"onLanguage:rmarkdown",
"onLanguage:ruby",
"onLanguage:rust",
"onLanguage:sas",
"onLanguage:scala",
"onLanguage:scheme",
"onLanguage:shell",
"onLanguage:smalltalk",
"onLanguage:solidity",
"onLanguage:sparql",
"onLanguage:sql",
"onLanguage:stan",
"onLanguage:standard-ml",
"onLanguage:stata",
"onLanguage:systemverilog",
"onLanguage:tcl",
"onLanguage:tcsh",
"onLanguage:tex",
"onLanguage:thrift",
"onLanguage:typescript",
"onLanguage:verilog",
"onLanguage:vhdl",
"onLanguage:visual-basic",
"onLanguage:xslt",
"onLanguage:yacc",
"onLanguage:yaml",
"onLanguage:zig"
],
"main": "./out/extension.js",
"contributes": {
"commands": [
{
"command": "dumbpilot.disableCompletion",
"title": "Disable predictive code completion",
"category": "dumbpilot"
},
{
"command": "dumbpilot.enableCompletion",
"title": "Enable predictive code completion",
"category": "dumbpilot"
}
],
1 year ago
"keybindings": [
{
"key": "ctrl+shift+l",
"mac": "cmd+shift+l",
"when": "editorTextFocus",
1 year ago
"command": "editor.action.inlineSuggest.trigger"
}
],
"configuration": {
"title": "dumbpilot",
"properties": {
"dumbpilot.completionEnabled": {
"type": "boolean",
"default": true,
"description": "Enable predictive code completion"
},
"dumbpilot.fimEnabled": {
"type": "boolean",
"default": false,
"description": "Enable Fill in Middle mode, defaults to Up-to cursor context"
},
"dumbpilot.llamaHost": {
"type": "string",
"default": "http://0.0.0.0:8080",
"description": "llama.cpp server address"
},
"dumbpilot.llamaCtxsize": {
"type": "number",
"default": 2048
},
"dumbpilot.llamaMaxtokens": {
"type": "number",
"default": -1
},
"dumbpilot.llamaMirostat": {
"type": "number",
"default": 0
},
"dumbpilot.llamaRepeatPenalty": {
"type": "number",
"default": 1.11
},
"dumbpilot.llamaFrequencyPenalty": {
"type": "number",
"default": 0.0
},
"dumbpilot.llamaPresencePenalty": {
"type": "number",
"default": 0.0
},
"dumbpilot.llamaRepeatCtx": {
"type": "number",
"default": 256
},
"dumbpilot.llamaTemperature": {
"type": "number",
"default": 0.25
},
"dumbpilot.llamaTop_p": {
"type": "number",
"default": 0.95
},
"dumbpilot.llamaTop_k": {
"type": "number",
"default": 40
},
"dumbpilot.llamaTypical_p": {
"type": "number",
"default": 0.95
},
"dumbpilot.llamaTailfree_z": {
"type": "number",
"default": 0.5
},
"dumbpilot.llamaSeed": {
"type": "number",
"default": -1
},
"dumbpilot.fimBeginString": {
"type": "string",
"default": "<|fim▁begin|>"
},
"dumbpilot.fimHoleString": {
"type": "string",
"default": "<|fim▁hole|>"
},
"dumbpilot.fimEndString": {
"type": "string",
"default": "<|fim▁end|>"
},
"dumbpilot.useFillInMiddleRequest": {
"type": "boolean",
"default": false,
"description": "Use the fill in middle request type provided by llama.cpp server, otherwise use the FIM token strings to delimit the text"
},
12 months ago
"dumbpilot.llamaCachePrompt": {
12 months ago
"type": "boolean",
12 months ago
"default": true,
"description": "Enable prompt caching for faster results"
12 months ago
},
"dumbpilot.llamaInstructModel": {
"type": "boolean",
"default": false,
12 months ago
"description": "For use with instruct models"
},
"dumbpilot.llamaSystemPrompt": {
"type": "string",
"description": "The system prompt that the model considers at the beginning of every request, used by instruct models"
},
"dumbpilot.llamaUseOpenAIAPI": {
"type": "boolean",
"default": true,
"description": "Use the OpenAI API to make requests to the server instead of the llama.cpp server API"
},
"dumbpilot.llamaModelName": {
"type": "string",
"default": "deepseek-coder-6.7B-base.gguf",
"description": "Name of the model to use, only works in OpenAI API mode"
12 months ago
}
}
}
1 year ago
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"pretest": "npm run compile && npm run lint",
"lint": "eslint src --ext ts",
"test": "node ./out/test/runTest.js"
},
"devDependencies": {
"@types/vscode": "^1.84.0",
"@types/mocha": "^10.0.3",
"@types/node": "18.x",
"@typescript-eslint/eslint-plugin": "^6.9.0",
"@typescript-eslint/parser": "^6.9.0",
"eslint": "^8.52.0",
"glob": "^10.3.10",
"mocha": "^10.2.0",
"typescript": "^5.2.2",
"@vscode/test-electron": "^2.3.6"
},
"prettier": {
"tabWidth": 4,
"printWidth": 100,
"useTabs": true,
"singleQuote": true,
"trailingComma": "es5"
1 year ago
}
}