forked from huggingface/llm-vscode
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
263 lines (263 loc) · 7.74 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
{
"name": "huggingface-vscode",
"displayName": "llm-vscode",
"description": "LLM powered development for VS Code",
"version": "0.2.0",
"publisher": "HuggingFace",
"icon": "small_logo.png",
"engines": {
"vscode": "^1.82.0"
},
"galleryBanner": {
"color": "#100f11",
"theme": "dark"
},
"badges": [
{
"url": "https://img.shields.io/github/stars/huggingface/llm-vscode?style=social",
"description": "Star llm-vscode on Github",
"href": "https://github.com/huggingface/llm-vscode"
},
{
"url": "https://img.shields.io/twitter/follow/huggingface?style=social",
"description": "Follow Huggingface on Twitter",
"href": "https://twitter.com/huggingface"
}
],
"homepage": "https://huggingface.co",
"repository": {
"url": "https://github.com/huggingface/llm-vscode.git",
"type": "git"
},
"bugs": {
"url": "https://github.com/huggingface/llm-vscode/issues"
},
"license": "Apache-2.0",
"categories": [
"Machine Learning",
"Programming Languages"
],
"keywords": [
"code",
"assistant",
"ai",
"llm",
"development",
"huggingface"
],
"activationEvents": [
"*"
],
"main": "./out/extension.js",
"contributes": {
"commands": [
{
"command": "llm.afterInsert",
"title": "Llm: After Insert"
},
{
"command": "llm.login",
"title": "Llm: Login"
},
{
"command": "llm.logout",
"title": "Llm: Logout"
},
{
"command": "llm.attribution",
"title": "Llm: Show Code Attribution"
}
],
"configuration": [
{
"title": "Llm",
"properties": {
"llm.requestDelay": {
"type": "integer",
"default": 150,
"description": "Delay between requests in milliseconds"
},
"llm.enableAutoSuggest": {
"type": "boolean",
"default": true,
"description": "Enable automatic suggestions"
},
"llm.configTemplate": {
"type": "string",
"enum": [
"hf/bigcode/starcoder",
"hf/codellama/CodeLlama-13b-hf",
"hf/Phind/Phind-CodeLlama-34B-v2",
"hf/WizardLM/WizardCoder-Python-34B-V1.0",
"hf/deepseek-ai/deepseek-coder-6.7b-base",
"ollama/codellama:7b",
"Custom"
],
"default": "hf/bigcode/starcoder",
"description": "Choose your model template from the dropdown"
},
"llm.modelId": {
"type": "string",
"default": "bigcode/starcoder",
"description": "Model id (ex: `bigcode/starcoder`), will be used to route your request to the appropriate model"
},
"llm.backend": {
"type": "string",
"enum": [
"huggingface",
"ollama",
"openai",
"tgi"
],
"default": "huggingface",
"description": "Backend used by the extension"
},
"llm.url": {
"type": [
"string",
"null"
],
"default": null,
"description": "HTTP URL of the backend, when null will use the default url for the Inference API"
},
"llm.fillInTheMiddle.enabled": {
"type": "boolean",
"default": true,
"description": "Enable fill in the middle for the current model"
},
"llm.fillInTheMiddle.prefix": {
"type": "string",
"default": "<fim_prefix>",
"description": "Prefix token"
},
"llm.fillInTheMiddle.middle": {
"type": "string",
"default": "<fim_middle>",
"description": "Middle token"
},
"llm.fillInTheMiddle.suffix": {
"type": "string",
"default": "<fim_suffix>",
"description": "Suffix token"
},
"llm.requestBody": {
"type": "object",
"default": {
"parameters": {
"max_new_tokens": 60,
"temperature": 0.2,
"top_p": 0.95
}
},
"description": "Whatever you set here will be sent as is as the HTTP POST request body to the chosen backend. Model and prompt will be added automatically."
},
"llm.contextWindow": {
"type": "integer",
"default": 2048,
"description": "Context window of the model"
},
"llm.tokensToClear": {
"type": "array",
"items": {
"type": "string"
},
"default": [
"<|endoftext|>"
],
"description": "(Optional) Tokens that should be cleared from the resulting output. For example, in FIM mode, one usually wants to clear FIM token from resulting outout."
},
"llm.attributionWindowSize": {
"type": "integer",
"default": 250,
"description": "Number of characters to scan for code attribution"
},
"llm.attributionEndpoint": {
"type": "string",
"default": "https://stack.dataportraits.org/overlap",
"description": "Endpoint to which attribution request will be sent to (https://stack.dataportraits.org/overlap for the stack)"
},
"llm.tlsSkipVerifyInsecure": {
"type": "boolean",
"default": false,
"description": "Skip TLS verification for insecure connections"
},
"llm.lsp.binaryPath": {
"type": [
"string",
"null"
],
"default": null,
"description": "Path to llm-ls binary, useful for debugging or when building from source"
},
"llm.lsp.port": {
"type": [
"number",
"null"
],
"default": null,
"description": "When running llm-ls with `--port`, port for the llm-ls server"
},
"llm.lsp.logLevel": {
"type": "string",
"default": "warn",
"description": "llm-ls log level"
},
"llm.tokenizer": {
"type": [
"object",
"null"
],
"default": null,
"description": "Tokenizer configuration for the model, check out the documentation for more details"
},
"llm.documentFilter": {
"type": [
"object",
"array"
],
"default": {
"pattern": "**"
},
"description": "Filter documents to enable suggestions for"
}
}
}
],
"keybindings": [
{
"key": "cmd+shift+l",
"command": "editor.action.inlineSuggest.trigger"
},
{
"key": "cmd+shift+a",
"command": "llm.attribution"
}
]
},
"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"
},
"dependencies": {
"undici": "^6.6.2",
"vscode-languageclient": "^9.0.1"
},
"devDependencies": {
"@types/mocha": "^10.0.6",
"@types/node": "16.x",
"@types/vscode": "^1.82.0",
"@typescript-eslint/eslint-plugin": "^6.21.0",
"@typescript-eslint/parser": "^6.21.0",
"@vscode/test-electron": "^2.3.9",
"@vscode/vsce": "^2.23.0",
"eslint": "^8.56.0",
"glob": "^10.3.10",
"mocha": "^10.3.0",
"ovsx": "^0.8.3",
"typescript": "^5.3.3"
}
}