@capybara-hq/plugin-openai-compatible 0.1.0-rc.0 → 0.1.0-rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,15 +1,19 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
3
  "name": "openai-compatible",
4
- "version": "0.1.0-rc.0",
4
+ "version": "0.1.0-rc.1",
5
5
  "publisher": "Capybara",
6
6
  "description": "Model provider (model-provider@2) for Chat Completions-compatible services (vLLM, DeepSeek, Qwen, ...) using the official openai SDK",
7
+ "displayName": {
8
+ "zh": "OpenAI 兼容模型",
9
+ "en": "OpenAI-compatible models"
10
+ },
7
11
  "homepage": "https://github.com/capybara-hq/plugins/tree/main/plugins/openai-compatible#readme",
8
12
  "extension": {
9
13
  "entry": "./dist/index.mjs",
10
14
  "manifest": {
11
15
  "name": "openai-compatible",
12
- "version": "0.1.0-rc.0",
16
+ "version": "0.1.0-rc.1",
13
17
  "sdk": "^0.1.0-rc.0",
14
18
  "provides": [
15
19
  "model-provider@2"
@@ -32,6 +36,213 @@
32
36
  ],
33
37
  "org": []
34
38
  }
39
+ },
40
+ "configSchemas": {
41
+ "deployment": {
42
+ "type": "object",
43
+ "properties": {
44
+ "endpoints": {
45
+ "minItems": 1,
46
+ "type": "array",
47
+ "items": {
48
+ "type": "object",
49
+ "properties": {
50
+ "name": {
51
+ "type": "string",
52
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]*$",
53
+ "x-ui": {
54
+ "label": {
55
+ "zh": "端点名",
56
+ "en": "Name"
57
+ }
58
+ },
59
+ "title": "Name"
60
+ },
61
+ "baseUrl": {
62
+ "type": "string",
63
+ "format": "uri",
64
+ "x-ui": {
65
+ "label": {
66
+ "zh": "接口地址",
67
+ "en": "API URL"
68
+ }
69
+ },
70
+ "title": "API URL"
71
+ },
72
+ "dialect": {
73
+ "type": "string",
74
+ "enum": [
75
+ "generic",
76
+ "deepseek",
77
+ "qwen",
78
+ "ark"
79
+ ],
80
+ "x-ui": {
81
+ "label": {
82
+ "zh": "方言",
83
+ "en": "Dialect"
84
+ }
85
+ },
86
+ "title": "Dialect"
87
+ },
88
+ "midConversationSystem": {
89
+ "type": "boolean",
90
+ "x-ui": {
91
+ "label": {
92
+ "zh": "原位置 system 消息",
93
+ "en": "In-place system messages"
94
+ }
95
+ },
96
+ "title": "In-place system messages"
97
+ },
98
+ "models": {
99
+ "minItems": 1,
100
+ "type": "array",
101
+ "items": {
102
+ "type": "object",
103
+ "properties": {
104
+ "id": {
105
+ "type": "string",
106
+ "minLength": 1,
107
+ "x-ui": {
108
+ "label": {
109
+ "zh": "模型 ID",
110
+ "en": "Model ID"
111
+ }
112
+ },
113
+ "title": "Model ID"
114
+ },
115
+ "contextWindow": {
116
+ "type": "integer",
117
+ "exclusiveMinimum": 0,
118
+ "maximum": 9007199254740991,
119
+ "x-ui": {
120
+ "label": {
121
+ "zh": "上下文窗口",
122
+ "en": "Context window"
123
+ }
124
+ },
125
+ "title": "Context window"
126
+ },
127
+ "maxOutputTokens": {
128
+ "type": "integer",
129
+ "exclusiveMinimum": 0,
130
+ "maximum": 9007199254740991,
131
+ "x-ui": {
132
+ "label": {
133
+ "zh": "最大输出",
134
+ "en": "Max output tokens"
135
+ }
136
+ },
137
+ "title": "Max output tokens"
138
+ },
139
+ "vision": {
140
+ "type": "boolean",
141
+ "x-ui": {
142
+ "label": {
143
+ "zh": "图片输入",
144
+ "en": "Image input"
145
+ }
146
+ },
147
+ "title": "Image input"
148
+ },
149
+ "documents": {
150
+ "type": "boolean",
151
+ "x-ui": {
152
+ "label": {
153
+ "zh": "PDF 输入",
154
+ "en": "PDF input"
155
+ }
156
+ },
157
+ "title": "PDF input"
158
+ },
159
+ "reasoning": {
160
+ "type": "boolean",
161
+ "x-ui": {
162
+ "label": {
163
+ "zh": "推理",
164
+ "en": "Reasoning"
165
+ }
166
+ },
167
+ "title": "Reasoning"
168
+ },
169
+ "caching": {
170
+ "type": "boolean",
171
+ "x-ui": {
172
+ "label": {
173
+ "zh": "提示缓存",
174
+ "en": "Prompt caching"
175
+ }
176
+ },
177
+ "title": "Prompt caching"
178
+ },
179
+ "streamIdleTimeoutMs": {
180
+ "type": "integer",
181
+ "exclusiveMinimum": 0,
182
+ "maximum": 9007199254740991,
183
+ "x-ui": {
184
+ "label": {
185
+ "zh": "流空闲超时",
186
+ "en": "Stream idle timeout"
187
+ }
188
+ },
189
+ "title": "Stream idle timeout"
190
+ }
191
+ },
192
+ "required": [
193
+ "id",
194
+ "contextWindow",
195
+ "maxOutputTokens"
196
+ ]
197
+ },
198
+ "x-ui": {
199
+ "label": {
200
+ "zh": "模型",
201
+ "en": "Models"
202
+ }
203
+ },
204
+ "title": "Models"
205
+ }
206
+ },
207
+ "required": [
208
+ "name",
209
+ "baseUrl",
210
+ "dialect",
211
+ "models"
212
+ ],
213
+ "additionalProperties": false
214
+ },
215
+ "x-ui": {
216
+ "label": {
217
+ "zh": "端点",
218
+ "en": "Endpoints"
219
+ }
220
+ },
221
+ "title": "Endpoints"
222
+ },
223
+ "apiKeys": {
224
+ "type": "object",
225
+ "propertyNames": {
226
+ "type": "string"
227
+ },
228
+ "additionalProperties": {
229
+ "type": "string",
230
+ "minLength": 1
231
+ },
232
+ "x-secret": true,
233
+ "x-ui": {
234
+ "label": {
235
+ "zh": "API 密钥(按端点名)",
236
+ "en": "API keys (by endpoint name)"
237
+ }
238
+ },
239
+ "title": "API keys (by endpoint name)"
240
+ }
241
+ },
242
+ "required": [
243
+ "endpoints"
244
+ ]
245
+ }
35
246
  }
36
247
  }
37
248
  }