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

277 lines
6.8 KiB

{
"name": "dumbpilot",
"displayName": "dumbpilot",
"description": "Simple code prediction using llama.cpp server api",
"publisher": "Alessandro Mauri",
"version": "0.0.1",
"icon": "dummy.ico",
"engines": {
"vscode": "^1.84.0"
},
"categories": [
"Other"
],
"repository": {
"type": "git",
"url": "https://git.alemauri.eu/alema/dumbpilot.git"
},
"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"
}
],
"keybindings": [
{
"key": "ctrl+shift+l",
"mac": "cmd+shift+l",
"when": "editorTextFocus",
"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.endpoint": {
"type": "string",
"default": "http://0.0.0.0:8080",
"description": "llama.cpp server address"
},
"dumbpilot.parameters.ContextSize": {
"type": "number",
"default": 2048
},
"dumbpilot.parameters.MaxTokens": {
"type": "number",
"default": -1
},
"dumbpilot.parameters.Mirostat": {
"type": "number",
"default": 0
},
"dumbpilot.parameters.RepeatPenalty": {
"type": "number",
"default": 1.11
},
"dumbpilot.parameters.FrequencyPenalty": {
"type": "number",
"default": 0
},
"dumbpilot.parameters.PresencePenalty": {
"type": "number",
"default": 0
},
"dumbpilot.parameters.RepeatCtx": {
"type": "number",
"default": 256
},
"dumbpilot.parameters.Temperature": {
"type": "number",
"default": 0.25
},
"dumbpilot.parameters.Top_p": {
"type": "number",
"default": 0.95
},
"dumbpilot.parameters.Top_k": {
"type": "number",
"default": 40
},
"dumbpilot.parameters.Typical_p": {
"type": "number",
"default": 0.95
},
"dumbpilot.parameters.Tailfree_z": {
"type": "number",
"default": 0.5
},
"dumbpilot.parameters.Seed": {
"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"
},
"dumbpilot.CachePrompt": {
"type": "boolean",
"default": true,
"description": "Enable prompt caching for faster results"
},
"dumbpilot.model.InstructModel": {
"type": "boolean",
"default": false,
"description": "For use with instruct models"
},
"dumbpilot.model.SystemPrompt": {
"type": "string",
"description": "The system prompt that the model considers at the beginning of every request, used by instruct models"
},
"dumbpilot.API": {
"type": "string",
"enum": ["llamacpp", "OpenAI"],
"default": "OpenAI",
"description": "Use the OpenAI API to make requests to the server instead of the llama.cpp server API"
},
"dumbpilot.model.ModelName": {
"type": "string",
"default": "deepseek-coder-6.7B-base.gguf",
"description": "Name of the model to use, only works in OpenAI API mode"
},
"dumbpilot.parameters.stream": {
"type": "boolean",
"default": false
}
}
}
},
"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"
}
}