-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathpackage.json
178 lines (178 loc) · 4.99 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
{
"name": "askgpt",
"displayName": "AskGPT for VSCode",
"description": "Use ChatGPT/OpenAI with your VSCode",
"version": "0.1.17",
"repository": "https://github.com/epiHATR/askGPT",
"icon": "images/askgpt_logo.png",
"author": "epiHATR - Hai Tran",
"publisher": "cloudcli",
"engines": {
"vscode": "^1.74.0"
},
"categories": [
"Machine Learning",
"Programming Languages",
"Extension Packs",
"Data Science",
"Other"
],
"keywords": [
"chatGPT",
"OpenAI",
"VSCode",
"ai",
"copilot"
],
"activationEvents": [],
"main": "./out/extension.js",
"contributes": {
"menus": {
"editor/context": [
{
"command": "askgpt.askgptforcompletion",
"group": "askgpt",
"when": "editorHasSelection"
},
{
"command": "askgpt.askgptexplaincode",
"group": "askgpt",
"when": "editorHasSelection"
},
{
"command": "askgpt.askgptformatcode",
"group": "askgpt",
"when": "editorHasSelection"
},
{
"command": "askgpt.askgptforgrammarcheck",
"group": "askgpt",
"when": "editorHasSelection"
},
{
"command": "askgpt.settings",
"group": "askgpt"
}
]
},
"keybindings": [
{
"command": "askgpt.askgptforcompletion",
"key": "ctrl+enter",
"mac": "cmd+enter"
},
{
"command": "askgpt.askgptexplaincode",
"key": "ctrl+f4",
"mac": "cmd+f4"
},
{
"command": "askgpt.askgptformatcode",
"key": "ctrl+shift+F",
"mac": "cmd+shift+F"
},
{
"command": "askgpt.askgptforgrammarcheck",
"key": "ctrl+f3",
"mac": "cmd+f3"
},
{
"command": "askgpt.settings",
"key": "ctrl+f2",
"mac": "cmd+f2"
}
],
"configuration": {
"title": "AskGPT",
"properties": {
"askgpt.openai.defaultModel": {
"type": "string",
"default": "gpt-3.5-turbo",
"enum": [
"gpt-3.5-turbo",
"gpt-4",
"text-embedding-ada-002",
"whisper-1",
"tts-1",
"dall-e-2",
"dall-e-3"
],
"markdownDescription": "Select default model that can understand and generate natural language",
"enumDescriptions": [
"A set of models that improve on GPT-3 and can understand as well as generate natural language or code",
"A set of models that improve on GPT-3.5 and can understand as well as generate natural language or code",
"A set of models that can convert text into a numerical form",
"A model that can convert audio into text"
]
},
"askgpt.openai.temperature": {
"type": "number",
"default": 0.65,
"markdownDescription": "What sampling temperature to use. 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."
},
"askgpt.openai.tokens": {
"type": "number",
"default": 1200,
"markdownDescription": "The maximum number of tokens to generate in the completion. The token count of your prompt plus max_tokens cannot exceed the model's context length. Most models have a context length of 2048 tokens (except for the newest models, which support 4096)."
}
}
},
"commands": [
{
"command": "askgpt.askgptforcompletion",
"title": "askGPT > Show me code"
},
{
"command": "askgpt.askgptforgrammarcheck",
"title": "askGPT > Grammar check"
},
{
"command": "askgpt.askgptexplaincode",
"title": "askGPT > Explain code block"
},
{
"command": "askgpt.askgptformatcode",
"title": "askGPT > Refactor code"
},
{
"command": "askgpt.settings",
"title": "askGPT > Settings"
},
{
"command": "askgpt.setKey",
"title": "askGPT > Set API Key"
},
{
"command": "askgpt.removeKey",
"title": "askGPT > Remove API Key"
}
]
},
"scripts": {
"vscode:prepublish": "npm run compile",
"publish": "vsce publish --no-yarn",
"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",
"@vscode/vsce": "^2.17.0",
"eslint": "^8.28.0",
"glob": "^8.0.3",
"mocha": "^10.1.0",
"typescript": "^4.9.3"
},
"dependencies": {
"fs": "^0.0.1-security",
"openai": "^4.17.0"
}
}