-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
246 lines (246 loc) · 6.79 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
{
"name": "worldspider",
"displayName": "worldspider",
"description": "loom in vscode",
"icon": "images/worldspider.png",
"version": "0.0.6",
"engines": {
"vscode": "^1.74.0"
},
"publisher": "janus",
"categories": [
"Other"
],
"activationEvents": [
"*"
],
"main": "./out/extension.js",
"contributes": {
"commands": [
{
"command": "worldspider.showCompletions",
"title": "Show completions"
},
{
"command": "worldspider.getContinuations",
"title": "Call model"
},
{
"command": "worldspider.getInfills",
"title": "Call model with infill"
},
{
"command": "worldspider.scorePrompt",
"title": "Get prompt logprobs without generating completions"
},
{
"command": "worldspider.copyCompletions",
"title": "Copy completions to clipboard"
},
{
"command": "worldspider.copyCompletionsText",
"title": "Copy completions text to clipboard"
},
{
"command": "worldspider.prevCompletions",
"title": "Show previous completions"
},
{
"command": "worldspider.nextCompletions",
"title": "Show next completions"
},
{
"command": "worldspider.customOp",
"title": "Custom operation"
}
],
"keybindings": [
{
"command": "worldspider.showCompletions",
"key": "alt+s",
"mac": "alt+s"
},
{
"command": "worldspider.getContinuations",
"key": "alt+d",
"mac": "alt+d"
},
{
"command": "worldspider.scorePrompt",
"key": "alt+p",
"mac": "alt+p"
},
{
"command": "worldspider.getInfills",
"key": "alt+shift+d",
"mac": "alt+shift+d"
},
{
"command": "worldspider.copyCompletions",
"key": "alt+c",
"mac": "alt+c"
},
{
"command": "worldspider.copyCompletionsText",
"key": "alt+shift+c",
"mac": "alt+shift+c"
},
{
"command": "worldspider.prevCompletions",
"key": "alt+left",
"mac": "alt+left"
},
{
"command": "worldspider.nextCompletions",
"key": "alt+right",
"mac": "alt+right"
},
{
"command": "worldspider.customOp",
"key": "alt+shift+o",
"mac": "alt+shift+o"
}
],
"configuration": {
"title": "worldspider",
"properties": {
"worldspider.apiKey": {
"type": "string",
"default": "",
"description": "OpenAI API key"
},
"worldspider.basePath": {
"type": "string",
"default": "https://api.openai.com/v1",
"description": "API base path"
},
"worldspider.generation.model": {
"type": "string",
"default": "code-davinci-002",
"description": "OpenAI model"
},
"worldspider.generation.maxTokens": {
"type": "number",
"default": 64,
"description": "Maximum number of tokens to generate"
},
"worldspider.generation.numCompletions": {
"type": "number",
"default": 5,
"description": "Number of completions to generate"
},
"worldspider.generation.temperature": {
"type": "number",
"default": 1,
"description": "Temperature"
},
"worldspider.generation.prefixLength": {
"type": "number",
"default": 10000,
"description": "Maximum length of prompt prefix"
},
"worldspider.generation.suffixLength": {
"type": "number",
"default": 5000,
"description": "Maximum length of prompt suffix"
},
"worldspider.generation.topP": {
"type": "number",
"default": 1,
"description": "Top p"
},
"worldspider.generation.frequencyPenalty": {
"type": "number",
"default": 0,
"description": "Frequency penalty"
},
"worldspider.generation.presencePenalty": {
"type": "number",
"default": 0,
"description": "Presence penalty"
},
"worldspider.generation.stopSequences": {
"type": "array",
"default": [],
"description": "Stop sequences"
},
"worldspider.generation.logprobs": {
"type": "number",
"default": 0,
"description": "Number of counterfactual top logprobs per token to return"
},
"worldspider.generation.echo": {
"type": "boolean",
"default": false,
"description": "Model returns prompt logprobs"
},
"worldspider.filterDuplicates": {
"type": "boolean",
"default": true,
"description": "Don't show duplicate completions"
},
"worldspider.log": {
"type": "boolean",
"default": false,
"description": "Log model responses"
},
"worldspider.savePath": {
"type": "string",
"default": "history.json",
"description": "Path to save model response history"
},
"worldspider.highlightModelText": {
"type": "boolean",
"default": true,
"description": "Highlight model-generated text"
},
"worldspider.generation.customInstruction": {
"type": "string",
"default": "This GPT-4 powered, AGI-complete text mutator rewrites anything the user sends in the style of David Foster Wallace.",
"description": "Instruction for the custom operation"
},
"worldspider.generation.customOpModel": {
"type": "string",
"default": "gpt-4",
"description": "Model for the custom operation"
}
}
},
"languages": [{
"id": "worldspider",
"extensions": [".wspdr"],
"configuration": "./language-configuration.json"
}],
"grammars": [
{
"language": "worldspider",
"scopeName": "source.worldspider",
"path": "./syntaxes/worldspider.tmLanguage.json"
}
]
},
"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/glob": "^8.0.0",
"@types/mocha": "^10.0.1",
"@types/node": "16.x",
"@types/vscode": "^1.74.0",
"@typescript-eslint/eslint-plugin": "^5.45.0",
"@typescript-eslint/parser": "^5.45.0",
"@vscode/test-electron": "^2.2.0",
"eslint": "^8.28.0",
"glob": "^8.0.3",
"mocha": "^10.1.0",
"typescript": "^4.9.3"
},
"dependencies": {
"openai": "^3.1.0"
}
}