-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpackage.json
More file actions
174 lines (174 loc) · 4.7 KB
/
Copy pathpackage.json
File metadata and controls
174 lines (174 loc) · 4.7 KB
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
{
"name": "zenmux-copilot",
"publisher": "hugehardzhang",
"displayName": "ZenMux Provider for Copilot",
"description": "An extension that ZenMux API Providers into GitHub Copilot Chat",
"icon": "assets/logo.png",
"keywords": [
"ai",
"chat",
"copilot",
"github-copilot",
"language-model",
"openai",
"zenmux",
"anthropic",
"claude"
],
"repository": {
"type": "git",
"url": "git@github.com:ilimei/zenmux-copilot.git"
},
"version": "0.1.9",
"engines": {
"vscode": "^1.104.0"
},
"extensionDependencies": [
"github.copilot-chat"
],
"categories": [
"AI",
"Chat"
],
"badges": [
{
"url": "https://img.shields.io/github/stars/ilimei/zenmux-copilot?style=social",
"description": "Star zenmux-copilot on Github",
"href": "https://github.com/ilimei/zenmux-copilot"
}
],
"bugs": {
"url": "https://github.com/ilimei/zenmux-copilot/issues"
},
"license": "MIT",
"enabledApiProposals": [
"chatProvider",
"languageModelThinkingPart"
],
"activationEvents": [
"onStartupFinished",
"onCommand:zenmux.setApikey",
"onCommand:zenmux.showSubscriptionUsage",
"onCommand:zenmux.setManagementApiKey",
"onCommand:zenmux.clearManagementApiKey",
"onCommand:zenmux.refreshSubscriptionUsage"
],
"contributes": {
"languageModelChatProviders": [
{
"vendor": "zenmux",
"displayName": "ZenMux",
"managementCommand": "zenmux.setApikey"
}
],
"commands": [
{
"command": "zenmux.setApikey",
"title": "ZenMux: Set ZenMux Apikey"
},
{
"command": "zenmux.showSubscriptionUsage",
"title": "ZenMux: Show Subscription Usage"
},
{
"command": "zenmux.setManagementApiKey",
"title": "ZenMux: Set Management API Key"
},
{
"command": "zenmux.clearManagementApiKey",
"title": "ZenMux: Clear Management API Key"
},
{
"command": "zenmux.refreshSubscriptionUsage",
"title": "ZenMux: Refresh Subscription Usage"
}
],
"configuration": {
"title": "ZenMux Compatible Copilot",
"properties": {
"zenmux.baseUrl": {
"type": "string",
"default": "https://zenmux.ai/api/v1",
"description": "The base URL for the ZenMux Compatible Inference API. Default value is Hugging Face."
},
"zenmux.anthropic.baseUrl": {
"type": "string",
"default": "https://zenmux.ai/api/anthropic",
"description": "The base URL for the Anthropic Compatible Inference API. Default value is Anthropic official API."
},
"zenmux.vertex.baseUrl": {
"type": "string",
"default": "https://zenmux.ai/api/vertex-ai",
"description": "The base URL for the Vertex AI Compatible Inference API. Default value is Google Vertex AI official API."
},
"zenmux.retry": {
"type": "object",
"default": {
"enabled": true,
"max_attempts": 3,
"interval_ms": 1000
},
"properties": {
"enabled": {
"type": "boolean",
"default": true,
"description": "Enable retry mechanism for api errors. Default is true."
},
"max_attempts": {
"type": "number",
"default": 3,
"minimum": 1,
"description": "Maximum number of retry attempts. Default is 3."
},
"interval_ms": {
"type": "number",
"default": 1000,
"minimum": 1,
"description": "Interval between retry attempts in milliseconds. Default is 1000 (1 seconds)."
},
"status_codes": {
"type": "array",
"items": {
"type": "number"
},
"description": "Additional HTTP status codes that will be merged. Default is [429, 500, 502, 503, 504]."
}
},
"description": "Retry configuration for handling api errors like [429, 500, 502, 503, 504]."
},
"zenmux.delay": {
"type": "number",
"default": 0,
"minimum": 0,
"description": "Fixed delay in milliseconds between consecutive requests. Default is 0 (no delay)."
}
}
}
},
"main": "./out/extension.js",
"scripts": {
"vscode:prepublish": "npm run compile",
"download-api": "dts dev && mv vscode.proposed.*.ts src",
"compile": "tsc -p ./",
"lint": "eslint",
"format": "prettier --write .",
"watch": "tsc -watch -p ./",
"test": "npm run compile && vscode-test",
"build": "npx @vscode/vsce package --baseContentUrl https://raw.githubusercontent.com/ilimei/zenmux-copilot/refs/heads/initial-commit/ -o extension.vsix"
},
"devDependencies": {
"@eslint/js": "^9.13.0",
"@stylistic/eslint-plugin": "^2.9.0",
"@types/mocha": "^10.0.6",
"@types/node": "^22",
"@types/vscode": "^1.100.0",
"@vscode/dts": "^0.4.1",
"@vscode/test-cli": "^0.0.11",
"@vscode/test-electron": "^2.5.2",
"@vscode/vsce": "^3.7.1",
"eslint": "^9.13.0",
"prettier": "^3.1.0",
"typescript": "^5.9.2",
"typescript-eslint": "^8.39.0"
}
}