-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathpackage.json
197 lines (197 loc) · 5.54 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
{
"name": "llm-book",
"version": "0.1.5",
"repository": {
"url": "https://github.com/JacksonKearl/ai-book"
},
"icon": "media/iconic.png",
"main": "./dist/extension.js",
"devDependencies": {
"@types/mocha": "^10.0.1",
"@types/vscode": "^1.77.0",
"@types/webpack-env": "^1.18.0",
"@typescript-eslint/eslint-plugin": "^5.49.0",
"@typescript-eslint/parser": "^5.49.0",
"@vscode/test-web": "^0.0.34",
"assert": "^2.0.0",
"eslint": "^8.33.0",
"mocha": "^10.1.0",
"process": "^0.11.10",
"ts-loader": "^9.4.2",
"typescript": "^4.9.4",
"webpack": "^5.75.0",
"webpack-cli": "^5.0.1"
},
"activationEvents": [],
"browser": "./dist/web/extension.js",
"categories": [
"Other"
],
"contributes": {
"commands": [
{
"title": "Update OpenAPI Api Key",
"command": "llm-book.updateOpenAIKey",
"enablement": "notebookType == llm-book"
},
{
"title": "Configure LLM Parameters",
"shortTitle": "Configure LLM",
"command": "llm-book.configureParameters",
"enablement": "notebookType == llm-book"
}
],
"configuration": [
{
"title": "LLM Book",
"properties": {
"llm-book.openAI.model": {
"type": "string",
"markdownDescription": "Model to use. A `model` field specified in `#llm-book.openAI.parameters#` or the notebooks own parameters will override this.",
"default": "gpt-3.5-turbo"
},
"llm-book.openAI.endpoint": {
"type": "string",
"default": "https://api.openai.com/v1/chat/completions"
},
"llm-book.openAI.parameters": {
"type": "object",
"default": {},
"markdownDescription": "Additional data to send to `#llm-book.openAI.endpoint#` as fields in body's JSON. Used for fine configuration of runtime. Parameters configured per-notebook override this."
},
"llm-book.openAI.showTokenCount": {
"type": "boolean",
"default": true,
"markdownDescription": "Whether to show how many tokens a cell contains. Note: this assumes the GPT 3.5/4's tokenizer, `cl100k_base`"
},
"llm-book.openAI.dollarsPerKiloToken": {
"type": "number",
"default": 0,
"markdownDescription": "Cost per 1,000 tokens. Set 0 to hide."
},
"llm-book.LLaMa.binary": {
"type": "string"
},
"llm-book.LLaMa.args": {
"type": "array",
"description": "Args with which to call the binary. The string `${messages}` will be replaced with the cell message data.",
"additionalItems": {
"type": "string"
}
}
}
}
],
"menus": {
"notebook/toolbar": [
{
"command": "llm-book.updateOpenAIKey"
},
{
"command": "llm-book.configureParameters",
"group": "navigation"
}
]
},
"notebooks": [
{
"type": "llm-book",
"displayName": "LLM Book",
"selector": [
{
"filenamePattern": "*.llm"
},
{
"filenamePattern": "*.llm.json"
}
],
"priority": "default"
}
],
"languages": [
{
"id": "user",
"aliases": [
"User"
],
"icon": {
"dark": "./media/file-icon.png",
"light": "./media/file-icon.png"
}
},
{
"id": "system",
"aliases": [
"System"
],
"icon": {
"dark": "./media/file-icon.png",
"light": "./media/file-icon.png"
}
},
{
"id": "assistant",
"aliases": [
"Assistant"
],
"icon": {
"dark": "./media/file-icon.png",
"light": "./media/file-icon.png"
}
},
{
"id": "llm-book",
"aliases": [
""
],
"extensions": [
".llm",
".llm.json"
],
"icon": {
"dark": "./media/file-icon.png",
"light": "./media/file-icon.png"
}
}
],
"grammars": [
{
"language": "user",
"scopeName": "text.html.markdown",
"path": "./syntaxes/markdown-aibook.tmLanguage.json"
},
{
"language": "system",
"scopeName": "text.html.markdown",
"path": "./syntaxes/markdown-aibook.tmLanguage.json"
},
{
"language": "assistant",
"scopeName": "text.html.markdown",
"path": "./syntaxes/markdown-aibook.tmLanguage.json"
}
]
},
"displayName": "LLM Book",
"description": "LLM Book: Notebook-based prompt engineering interface for LLM's like GPT and LLaMa, akin to ChatGPT but better",
"engines": {
"vscode": "^1.77.0"
},
"publisher": "jaaxxx",
"scripts": {
"test": "vscode-test-web --browserType=chromium --extensionDevelopmentPath=. --extensionTestsPath=dist/web/test/suite/index.js",
"pretest": "npm run compile-all",
"vscode:prepublish": "npm run package-all",
"compile-all": "webpack",
"watch-all": "webpack --watch",
"package-all": "webpack --mode production --devtool hidden-source-map",
"lint": "eslint src --ext ts",
"run-in-browser": "vscode-test-web --browserType=chromium --extensionDevelopmentPath=. ."
},
"dependencies": {
"@dqbd/tiktoken": "^1.0.7",
"eslint-config-prettier": "^9.0.0",
"gjp-4-gpt": "^0.0.8",
"node-fetch": "^3.3.1"
}
}