forked from huggingface/llm-vscode
-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
251 lines (251 loc) · 7.57 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
{
"name": "huggingface-vscode",
"displayName": "llm-vscode",
"description": "LLM powered development for VS Code",
"version": "0.1.6",
"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": [
"bigcode/starcoder",
"codellama/CodeLlama-13b-hf",
"Phind/Phind-CodeLlama-34B-v2",
"WizardLM/WizardCoder-Python-34B-V1.0",
"ollama/CodeLlama-7b-code",
"openai/chat-gpt-3.5-turbo",
"Custom"
],
"default": "bigcode/starcoder",
"description": "Choose your model template from the dropdown."
},
"llm.modelIdOrEndpoint": {
"type": "string",
"default": "bigcode/starcoder",
"description": "Supply huggingface model id (ex: `bigcode/starcoder`) or custom endpoint (ex: https://bigcode-large-xl.eu.ngrok.io/generate) to which requests will be sent. When huggingface model id is supplied, hugging face API inference will be used."
},
"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.temperature": {
"type": "float",
"default": 0.2,
"description": "Sampling temperature"
},
"llm.maxNewTokens": {
"type": "integer",
"default": 60,
"description": "Max number of new tokens to be generated. The accepted range is [50-500] both ends inclusive. Be warned that the latency of a request will increase with higher number."
},
"llm.contextWindow": {
"type": "integer",
"default": 8192,
"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.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.adaptor": {
"type": "string",
"enum": [
"huggingface",
"ollama",
"openai",
"tgi"
],
"default": "huggingface",
"desciption": "Completion provider to adapt to"
},
"llm.requestBody": {
"type": ["object", "null"],
"default": null,
"description": "Request body to be sent to the adaptor"
},
"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": "^5.26.4",
"vscode-languageclient": "^8.1.0"
},
"devDependencies": {
"@types/mocha": "^10.0.1",
"@types/node": "16.x",
"@types/vscode": "^1.82.0",
"@typescript-eslint/eslint-plugin": "^6.4.1",
"@typescript-eslint/parser": "^6.4.1",
"@vscode/test-electron": "^2.3.4",
"@vscode/vsce": "^2.21.0",
"eslint": "^8.47.0",
"glob": "^10.3.3",
"mocha": "^10.2.0",
"ovsx": "^0.8.3",
"typescript": "^5.1.6"
}
}