-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpackage.json
138 lines (138 loc) · 3.98 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
{
"enableProposedApi": true,
"repository": "https://github.com/TheFuseGamer/vs-codex",
"name": "vs-codex",
"displayName": "VS Codex",
"description": "OpentAI Codex auto-completion for VS Code",
"publisher": "Fuse-Gaming",
"version": "0.0.1",
"engines": {
"vscode": "^1.59.0"
},
"categories": [
"Other"
],
"activationEvents": [
"*"
],
"main": "./out/extension.js",
"contributes": {
"commands": [
{
"command": "vs-codex.explain",
"title": "VS Codex: Explain selected code"
},
{
"command": "vs-codex.complete",
"title": "VS Codex: Complete code after cursor"
},
{
"command": "vs-codex.change-completion-type",
"title": "VS Codex: Change completion type"
},
{
"command": "vs-codex.change-model-type",
"title": "VS Codex: Change Codex model type"
},
{
"command": "vs-codex.chat",
"title": "VS Codex: Chat with your AI assistant"
}
],
"keybindings": [
{
"command": "vs-codex.complete",
"key": "ctrl+enter"
}
],
"configuration": {
"title": "VS Codex",
"properties": {
"general.openaiKey": {
"type": "string",
"default": "secret key",
"description": "Open AI secret key"
},
"general.maxTokens": {
"type": "number",
"default": 256,
"minimum": 64,
"maximum": 1024,
"description": "Maximum number of tokens the GPT model can generate"
},
"completions.promptSize": {
"type": "number",
"default": 1024,
"minimum": 128,
"maximum": 2048,
"description": "If smart sampling is not available, this number is use to generate a simple prompt"
},
"model.temperature": {
"type": "number",
"default": 0.2,
"minimum": 0,
"maximum": 1,
"description": "Higher values means the model will take more risks. Try 0.9 for more creative applications, and 0 (argmax sampling) for ones with a well-defined answer."
},
"model.topP": {
"type": "number",
"default": 1,
"minimum": 0,
"maximum": 1,
"description": "An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass. So 0.1 means only the tokens comprising the top 10% probability mass are considered."
},
"model.n": {
"type": "number",
"default": 1,
"minimum": 1,
"maximum": 10,
"description": "How many completions to generate for each prompt. (More predictions = more expensive)"
},
"model.frequencyPenalty": {
"type": "number",
"default": 0,
"minimum": -2,
"maximum": 2,
"description": "Number between -2.0 and 2.0. Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics."
},
"model.presencePenalty": {
"type": "number",
"default": 0,
"minimum": -2,
"maximum": 2,
"description": "Number between -2.0 and 2.0. Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim."
},
"model.bestOf": {
"type": "number",
"default": 1,
"minimum": 1,
"maximum": 10,
"description": "Generates best_of completions server-side and returns the \"best\" (the one with the lowest log probability per token). Results cannot be streamed. (More predictions = more expensive)"
}
}
}
},
"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": "^7.1.3",
"@types/mocha": "^8.2.2",
"@types/node": "14.x",
"@typescript-eslint/eslint-plugin": "^4.26.0",
"@typescript-eslint/parser": "^4.26.0",
"eslint": "^7.27.0",
"glob": "^7.1.7",
"mocha": "^8.4.0",
"typescript": "^4.3.2",
"vscode-test": "^1.5.2"
},
"dependencies": {
"axios": "^0.21.1"
}
}