-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
165 lines (165 loc) · 4.68 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
{
"name": "mistral-vscode",
"displayName": "Mistral-vscode",
"description": "Call the Mistral API directly from VS Code",
"publisher": "Maxence Groine",
"repository": {
"type": "git",
"url": "https://github.com/MaxyMoos/mistral-vscode.git"
},
"version": "0.0.3",
"engines": {
"vscode": "^1.85.0"
},
"categories": [
"Other"
],
"activationEvents": [],
"main": "./out/extension.js",
"contributes": {
"viewsContainers": {
"activitybar": [
{
"id": "mistral-chat",
"title": "Chat with Mistral",
"icon": "resources/icon.png"
}
]
},
"views" : {
"mistral-chat": [
{
"type": "webview",
"id": "mistral-vscode.mistralChatView",
"name": "Chat with Mistral"
}
]
},
"menus": {
"commandPalette": [
{
"command": "mistral-vscode.openChat",
"when": "false"
},
{
"command": "mistral-vscode.startNewChat",
"when": "false"
}
],
"webview/context": [
{
"when": "webviewId == mistral-vscode.mistralChatView",
"command": "mistral-vscode.openChat",
"group": "navigation@2"
},
{
"when": "webviewId == mistral-vscode.mistralChatView",
"command": "mistral-vscode.startNewChat",
"group": "navigation@1"
}
]
},
"commands": [
{
"command": "mistral-vscode.openChat",
"title": "Open previous chat"
},
{
"command": "mistral-vscode.startNewChat",
"title": "Start new chat"
}
],
"configuration": {
"title": "Mistral API",
"properties": {
"mistral-vscode.apiKey": {
"type": "string",
"default": "",
"scope": "machine-overridable",
"description": "Your Mistral API key, required for the extension to work",
"order": 1
},
"mistral-vscode.defaultModel": {
"type": "string",
"default": "open-mistral-7b",
"enum": [
"open-mistral-7b",
"open-mixtral-8x7b",
"mistral-small-latest",
"mistral-medium-latest",
"mistral-large-latest"
],
"enumDescriptions": [
"aka mistral-tiny-2312",
"aka mistral-small-2312",
"aka mistral-small-2402",
"aka mistral-medium-2312",
"aka mistral-large-2402"
],
"title": "Default model to use in new chats",
"description": "The default model that will be used when starting a new chat or picking up an old one",
"order": 2
},
"mistral-vscode.mustSaveChats": {
"type": "boolean",
"default": false,
"scope": "machine-overridable",
"title": "Save Chats",
"description": "Should the extension save chats automatically (as JSON)",
"order": 3
},
"mistral-vscode.saveChatsLocation": {
"type": "string",
"default": "~/.mistral-vscode/chats/",
"scope": "machine",
"title": "Saved chats location",
"description": "The folder in which the chat history shall be kept (using '~' is fine)",
"order": 4
},
"mistral-vscode.getChatsTitlesByMistral": {
"type": "boolean",
"default": false,
"scope": "machine",
"title": "Get Mistral to name chats (warning: will cause additional API requests)",
"description": "Get Mistral to name chats (warning: will cause additional API requests)",
"order": 5
},
"mistral-vscode.chatsTitlesModel": {
"type": "string",
"default": "open-mistral-7b",
"enum": [
"open-mistral-7b",
"open-mixtral-8x7b",
"mistral-small-latest",
"mistral-medium-latest",
"mistral-large-latest"
],
"description": "The model to use for generating chat titles",
"order": 6
}
}
}
},
"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": "vscode-test"
},
"devDependencies": {
"@types/mocha": "^10.0.6",
"@types/node": "18.x",
"@types/vscode": "^1.85.0",
"@typescript-eslint/eslint-plugin": "^6.15.0",
"@typescript-eslint/parser": "^6.15.0",
"@vscode/test-cli": "^0.0.4",
"@vscode/test-electron": "^2.3.8",
"eslint": "^8.56.0",
"typescript": "^5.3.3"
},
"dependencies": {
"axios": "^1.6.3"
}
}