pi-opencode-go-provider 1.1.44 → 1.1.46
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.
- package/deprecated-models.json +0 -29
- package/models.json +303 -303
- package/package.json +2 -2
- package/scripts/test-pi-compat.mjs +4 -4
package/deprecated-models.json
CHANGED
|
@@ -1,33 +1,4 @@
|
|
|
1
1
|
{
|
|
2
|
-
"space-bunny": {
|
|
3
|
-
"id": "space-bunny",
|
|
4
|
-
"name": "Space Bunny",
|
|
5
|
-
"api": "openai-completions",
|
|
6
|
-
"baseUrl": "https://opencode.ai/zen/go/v1",
|
|
7
|
-
"reasoning": true,
|
|
8
|
-
"thinkingLevelMap": {
|
|
9
|
-
"off": null,
|
|
10
|
-
"minimal": null,
|
|
11
|
-
"low": "low",
|
|
12
|
-
"medium": "medium",
|
|
13
|
-
"high": "high",
|
|
14
|
-
"xhigh": "xhigh",
|
|
15
|
-
"max": "max"
|
|
16
|
-
},
|
|
17
|
-
"input": [
|
|
18
|
-
"text",
|
|
19
|
-
"image"
|
|
20
|
-
],
|
|
21
|
-
"cost": {
|
|
22
|
-
"input": 0.15,
|
|
23
|
-
"output": 0.6,
|
|
24
|
-
"cacheRead": 0.03,
|
|
25
|
-
"cacheWrite": 0
|
|
26
|
-
},
|
|
27
|
-
"contextWindow": 1048576,
|
|
28
|
-
"maxTokens": 524288,
|
|
29
|
-
"deprecatedAt": "2026-10-20T04:41:48.512Z"
|
|
30
|
-
},
|
|
31
2
|
"minimax-m3.1-flash-free": {
|
|
32
3
|
"id": "minimax-m3.1-flash-free",
|
|
33
4
|
"name": "MiniMax M3.1 Flash Free",
|
package/models.json
CHANGED
|
@@ -1,53 +1,147 @@
|
|
|
1
1
|
[
|
|
2
2
|
{
|
|
3
|
-
"id": "
|
|
4
|
-
"name": "
|
|
3
|
+
"id": "glm-5.3-flash",
|
|
4
|
+
"name": "GLM-5.3-Flash",
|
|
5
|
+
"api": "openai-completions",
|
|
6
|
+
"baseUrl": "https://opencode.ai/zen/go/v1",
|
|
7
|
+
"reasoning": true,
|
|
8
|
+
"thinkingLevelMap": {
|
|
9
|
+
"off": null,
|
|
10
|
+
"minimal": null,
|
|
11
|
+
"low": "low",
|
|
12
|
+
"medium": null,
|
|
13
|
+
"high": "high",
|
|
14
|
+
"xhigh": null,
|
|
15
|
+
"max": "max"
|
|
16
|
+
},
|
|
17
|
+
"input": [
|
|
18
|
+
"text",
|
|
19
|
+
"image"
|
|
20
|
+
],
|
|
21
|
+
"cost": {
|
|
22
|
+
"input": 0.15,
|
|
23
|
+
"output": 0.5,
|
|
24
|
+
"cacheRead": 0.03,
|
|
25
|
+
"cacheWrite": 0
|
|
26
|
+
},
|
|
27
|
+
"contextWindow": 1000000,
|
|
28
|
+
"maxTokens": 131072
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"id": "qwen3.8-max",
|
|
32
|
+
"name": "Qwen3.8 Max",
|
|
5
33
|
"api": "anthropic-messages",
|
|
6
34
|
"baseUrl": "https://opencode.ai/zen/go",
|
|
7
35
|
"reasoning": true,
|
|
36
|
+
"thinkingLevelMap": {
|
|
37
|
+
"off": null,
|
|
38
|
+
"minimal": null,
|
|
39
|
+
"low": "low",
|
|
40
|
+
"medium": "medium",
|
|
41
|
+
"high": null,
|
|
42
|
+
"xhigh": "xhigh",
|
|
43
|
+
"max": null
|
|
44
|
+
},
|
|
8
45
|
"input": [
|
|
9
46
|
"text",
|
|
10
47
|
"image"
|
|
11
48
|
],
|
|
12
49
|
"cost": {
|
|
13
|
-
"input":
|
|
14
|
-
"output":
|
|
15
|
-
"cacheRead": 0.
|
|
16
|
-
"cacheWrite":
|
|
50
|
+
"input": 2,
|
|
51
|
+
"output": 6,
|
|
52
|
+
"cacheRead": 0.25,
|
|
53
|
+
"cacheWrite": 2.5
|
|
17
54
|
},
|
|
18
55
|
"contextWindow": 1000000,
|
|
19
|
-
"maxTokens":
|
|
56
|
+
"maxTokens": 131072
|
|
20
57
|
},
|
|
21
58
|
{
|
|
22
|
-
"id": "
|
|
23
|
-
"name": "
|
|
24
|
-
"api": "
|
|
25
|
-
"baseUrl": "https://opencode.ai/zen/go
|
|
59
|
+
"id": "claude-haiku-5-5",
|
|
60
|
+
"name": "Claude Haiku 5.5",
|
|
61
|
+
"api": "anthropic-messages",
|
|
62
|
+
"baseUrl": "https://opencode.ai/zen/go",
|
|
26
63
|
"reasoning": true,
|
|
27
64
|
"thinkingLevelMap": {
|
|
28
65
|
"off": null,
|
|
29
66
|
"minimal": null,
|
|
30
|
-
"low":
|
|
31
|
-
"medium":
|
|
67
|
+
"low": "low",
|
|
68
|
+
"medium": "medium",
|
|
32
69
|
"high": "high",
|
|
33
|
-
"xhigh":
|
|
34
|
-
"max":
|
|
70
|
+
"xhigh": "xhigh",
|
|
71
|
+
"max": "max"
|
|
72
|
+
},
|
|
73
|
+
"input": [
|
|
74
|
+
"text",
|
|
75
|
+
"image"
|
|
76
|
+
],
|
|
77
|
+
"cost": {
|
|
78
|
+
"input": 0.1,
|
|
79
|
+
"output": 0.5,
|
|
80
|
+
"cacheRead": 0.01,
|
|
81
|
+
"cacheWrite": 0.125
|
|
35
82
|
},
|
|
83
|
+
"contextWindow": 1000000,
|
|
84
|
+
"maxTokens": 128000
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"id": "mimo-v2.6-pro",
|
|
88
|
+
"name": "MiMo-V2.6-Pro",
|
|
89
|
+
"api": "openai-completions",
|
|
90
|
+
"baseUrl": "https://opencode.ai/zen/go/v1",
|
|
91
|
+
"reasoning": true,
|
|
92
|
+
"input": [
|
|
93
|
+
"text",
|
|
94
|
+
"image"
|
|
95
|
+
],
|
|
96
|
+
"cost": {
|
|
97
|
+
"input": 0.435,
|
|
98
|
+
"output": 0.87,
|
|
99
|
+
"cacheRead": 0.003625,
|
|
100
|
+
"cacheWrite": 0
|
|
101
|
+
},
|
|
102
|
+
"contextWindow": 1048576,
|
|
103
|
+
"maxTokens": 131072
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"id": "longcat-2.0",
|
|
107
|
+
"name": "LongCat-2.0",
|
|
108
|
+
"api": "openai-completions",
|
|
109
|
+
"baseUrl": "https://opencode.ai/zen/go/v1",
|
|
110
|
+
"reasoning": true,
|
|
36
111
|
"input": [
|
|
37
112
|
"text"
|
|
38
113
|
],
|
|
39
114
|
"cost": {
|
|
40
|
-
"input": 0.
|
|
41
|
-
"output": 2
|
|
42
|
-
"cacheRead": 0.
|
|
115
|
+
"input": 0.3,
|
|
116
|
+
"output": 1.2,
|
|
117
|
+
"cacheRead": 0.006,
|
|
43
118
|
"cacheWrite": 0
|
|
44
119
|
},
|
|
45
|
-
"contextWindow":
|
|
46
|
-
"maxTokens":
|
|
120
|
+
"contextWindow": 1000000,
|
|
121
|
+
"maxTokens": 131072
|
|
47
122
|
},
|
|
48
123
|
{
|
|
49
|
-
"id": "
|
|
50
|
-
"name": "
|
|
124
|
+
"id": "mimo-v2.6-flash",
|
|
125
|
+
"name": "MiMo-V2.6-Flash",
|
|
126
|
+
"api": "openai-completions",
|
|
127
|
+
"baseUrl": "https://opencode.ai/zen/go/v1",
|
|
128
|
+
"reasoning": true,
|
|
129
|
+
"input": [
|
|
130
|
+
"text",
|
|
131
|
+
"image"
|
|
132
|
+
],
|
|
133
|
+
"cost": {
|
|
134
|
+
"input": 0.14,
|
|
135
|
+
"output": 0.28,
|
|
136
|
+
"cacheRead": 0.0028,
|
|
137
|
+
"cacheWrite": 0
|
|
138
|
+
},
|
|
139
|
+
"contextWindow": 1048576,
|
|
140
|
+
"maxTokens": 131072
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"id": "deepseek-v4.1-flash",
|
|
144
|
+
"name": "DeepSeek V4.1 Flash",
|
|
51
145
|
"api": "openai-completions",
|
|
52
146
|
"baseUrl": "https://opencode.ai/zen/go/v1",
|
|
53
147
|
"reasoning": true,
|
|
@@ -55,23 +149,23 @@
|
|
|
55
149
|
"off": null,
|
|
56
150
|
"minimal": null,
|
|
57
151
|
"low": "low",
|
|
58
|
-
"medium":
|
|
152
|
+
"medium": null,
|
|
59
153
|
"high": "high",
|
|
60
154
|
"xhigh": null,
|
|
61
|
-
"max":
|
|
155
|
+
"max": "max"
|
|
62
156
|
},
|
|
63
157
|
"input": [
|
|
64
158
|
"text",
|
|
65
159
|
"image"
|
|
66
160
|
],
|
|
67
161
|
"cost": {
|
|
68
|
-
"input":
|
|
69
|
-
"output":
|
|
70
|
-
"cacheRead": 0.
|
|
162
|
+
"input": 0.15,
|
|
163
|
+
"output": 0.6,
|
|
164
|
+
"cacheRead": 0.003,
|
|
71
165
|
"cacheWrite": 0
|
|
72
166
|
},
|
|
73
|
-
"contextWindow":
|
|
74
|
-
"maxTokens":
|
|
167
|
+
"contextWindow": 1000000,
|
|
168
|
+
"maxTokens": 384000
|
|
75
169
|
},
|
|
76
170
|
{
|
|
77
171
|
"id": "beam-free",
|
|
@@ -101,60 +195,50 @@
|
|
|
101
195
|
"maxTokens": 131072
|
|
102
196
|
},
|
|
103
197
|
{
|
|
104
|
-
"id": "
|
|
105
|
-
"name": "
|
|
198
|
+
"id": "kimi-k2.7-code",
|
|
199
|
+
"name": "Kimi K2.7 Code",
|
|
106
200
|
"api": "openai-completions",
|
|
107
201
|
"baseUrl": "https://opencode.ai/zen/go/v1",
|
|
108
202
|
"reasoning": true,
|
|
109
|
-
"thinkingLevelMap": {
|
|
110
|
-
"off": null,
|
|
111
|
-
"minimal": null,
|
|
112
|
-
"low": "low",
|
|
113
|
-
"medium": "medium",
|
|
114
|
-
"high": "high",
|
|
115
|
-
"xhigh": "xhigh",
|
|
116
|
-
"max": null
|
|
117
|
-
},
|
|
118
203
|
"input": [
|
|
119
204
|
"text",
|
|
120
205
|
"image"
|
|
121
206
|
],
|
|
122
207
|
"cost": {
|
|
123
|
-
"input":
|
|
124
|
-
"output":
|
|
125
|
-
"cacheRead": 0.
|
|
208
|
+
"input": 0.95,
|
|
209
|
+
"output": 4,
|
|
210
|
+
"cacheRead": 0.19,
|
|
126
211
|
"cacheWrite": 0
|
|
127
212
|
},
|
|
128
|
-
"contextWindow":
|
|
129
|
-
"maxTokens":
|
|
213
|
+
"contextWindow": 262144,
|
|
214
|
+
"maxTokens": 262144
|
|
130
215
|
},
|
|
131
216
|
{
|
|
132
|
-
"id": "
|
|
133
|
-
"name": "
|
|
134
|
-
"api": "
|
|
135
|
-
"baseUrl": "https://opencode.ai/zen/go",
|
|
217
|
+
"id": "hy4-preview",
|
|
218
|
+
"name": "Hy4 preview",
|
|
219
|
+
"api": "openai-completions",
|
|
220
|
+
"baseUrl": "https://opencode.ai/zen/go/v1",
|
|
136
221
|
"reasoning": true,
|
|
137
222
|
"thinkingLevelMap": {
|
|
138
223
|
"off": null,
|
|
139
224
|
"minimal": null,
|
|
140
|
-
"low":
|
|
141
|
-
"medium":
|
|
142
|
-
"high":
|
|
143
|
-
"xhigh":
|
|
225
|
+
"low": null,
|
|
226
|
+
"medium": null,
|
|
227
|
+
"high": "high",
|
|
228
|
+
"xhigh": null,
|
|
144
229
|
"max": null
|
|
145
230
|
},
|
|
146
231
|
"input": [
|
|
147
|
-
"text"
|
|
148
|
-
"image"
|
|
232
|
+
"text"
|
|
149
233
|
],
|
|
150
234
|
"cost": {
|
|
151
|
-
"input": 0.
|
|
152
|
-
"output":
|
|
153
|
-
"cacheRead": 0.
|
|
154
|
-
"cacheWrite": 0
|
|
235
|
+
"input": 0.834,
|
|
236
|
+
"output": 2.501,
|
|
237
|
+
"cacheRead": 0.042,
|
|
238
|
+
"cacheWrite": 0
|
|
155
239
|
},
|
|
156
|
-
"contextWindow":
|
|
157
|
-
"maxTokens":
|
|
240
|
+
"contextWindow": 1024000,
|
|
241
|
+
"maxTokens": 64000
|
|
158
242
|
},
|
|
159
243
|
{
|
|
160
244
|
"id": "step-5-preview",
|
|
@@ -185,64 +269,63 @@
|
|
|
185
269
|
"maxTokens": 65536
|
|
186
270
|
},
|
|
187
271
|
{
|
|
188
|
-
"id": "
|
|
189
|
-
"name": "
|
|
272
|
+
"id": "deepseek-v4-pro",
|
|
273
|
+
"name": "DeepSeek V4 Pro (New)",
|
|
190
274
|
"api": "openai-completions",
|
|
191
275
|
"baseUrl": "https://opencode.ai/zen/go/v1",
|
|
192
276
|
"reasoning": true,
|
|
193
277
|
"thinkingLevelMap": {
|
|
194
278
|
"off": null,
|
|
195
279
|
"minimal": null,
|
|
196
|
-
"low":
|
|
280
|
+
"low": null,
|
|
197
281
|
"medium": null,
|
|
198
282
|
"high": "high",
|
|
199
283
|
"xhigh": null,
|
|
200
284
|
"max": "max"
|
|
201
285
|
},
|
|
202
286
|
"input": [
|
|
203
|
-
"text"
|
|
204
|
-
"image"
|
|
287
|
+
"text"
|
|
205
288
|
],
|
|
206
289
|
"cost": {
|
|
207
|
-
"input":
|
|
208
|
-
"output":
|
|
209
|
-
"cacheRead": 0.
|
|
210
|
-
"cacheWrite":
|
|
290
|
+
"input": 0.66,
|
|
291
|
+
"output": 1.98,
|
|
292
|
+
"cacheRead": 0.022,
|
|
293
|
+
"cacheWrite": 0
|
|
211
294
|
},
|
|
212
|
-
"contextWindow":
|
|
213
|
-
"maxTokens":
|
|
295
|
+
"contextWindow": 1000000,
|
|
296
|
+
"maxTokens": 384000
|
|
214
297
|
},
|
|
215
298
|
{
|
|
216
|
-
"id": "
|
|
217
|
-
"name": "
|
|
299
|
+
"id": "gemini-4-argon",
|
|
300
|
+
"name": "Gemini 4 Argon",
|
|
218
301
|
"api": "openai-completions",
|
|
219
302
|
"baseUrl": "https://opencode.ai/zen/go/v1",
|
|
220
303
|
"reasoning": true,
|
|
221
304
|
"thinkingLevelMap": {
|
|
222
305
|
"off": null,
|
|
223
306
|
"minimal": null,
|
|
224
|
-
"low":
|
|
225
|
-
"medium":
|
|
226
|
-
"high":
|
|
307
|
+
"low": "low",
|
|
308
|
+
"medium": "medium",
|
|
309
|
+
"high": "high",
|
|
227
310
|
"xhigh": null,
|
|
228
|
-
"max":
|
|
311
|
+
"max": null
|
|
229
312
|
},
|
|
230
313
|
"input": [
|
|
231
314
|
"text",
|
|
232
315
|
"image"
|
|
233
316
|
],
|
|
234
317
|
"cost": {
|
|
235
|
-
"input":
|
|
236
|
-
"output":
|
|
237
|
-
"cacheRead": 0.
|
|
238
|
-
"cacheWrite":
|
|
318
|
+
"input": 2,
|
|
319
|
+
"output": 10,
|
|
320
|
+
"cacheRead": 0.1,
|
|
321
|
+
"cacheWrite": 0
|
|
239
322
|
},
|
|
240
323
|
"contextWindow": 1048576,
|
|
241
|
-
"maxTokens":
|
|
324
|
+
"maxTokens": 65536
|
|
242
325
|
},
|
|
243
326
|
{
|
|
244
|
-
"id": "
|
|
245
|
-
"name": "
|
|
327
|
+
"id": "grok-4.7",
|
|
328
|
+
"name": "Grok 4.7",
|
|
246
329
|
"api": "openai-completions",
|
|
247
330
|
"baseUrl": "https://opencode.ai/zen/go/v1",
|
|
248
331
|
"reasoning": true,
|
|
@@ -250,26 +333,27 @@
|
|
|
250
333
|
"off": null,
|
|
251
334
|
"minimal": null,
|
|
252
335
|
"low": "low",
|
|
253
|
-
"medium":
|
|
336
|
+
"medium": "medium",
|
|
254
337
|
"high": "high",
|
|
255
|
-
"xhigh":
|
|
338
|
+
"xhigh": "xhigh",
|
|
256
339
|
"max": null
|
|
257
340
|
},
|
|
258
341
|
"input": [
|
|
259
|
-
"text"
|
|
342
|
+
"text",
|
|
343
|
+
"image"
|
|
260
344
|
],
|
|
261
345
|
"cost": {
|
|
262
|
-
"input":
|
|
263
|
-
"output":
|
|
264
|
-
"cacheRead": 0.
|
|
346
|
+
"input": 2,
|
|
347
|
+
"output": 6,
|
|
348
|
+
"cacheRead": 0.5,
|
|
265
349
|
"cacheWrite": 0
|
|
266
350
|
},
|
|
267
|
-
"contextWindow":
|
|
268
|
-
"maxTokens":
|
|
351
|
+
"contextWindow": 500000,
|
|
352
|
+
"maxTokens": 500000
|
|
269
353
|
},
|
|
270
354
|
{
|
|
271
|
-
"id": "
|
|
272
|
-
"name": "
|
|
355
|
+
"id": "hy3",
|
|
356
|
+
"name": "Hy3",
|
|
273
357
|
"api": "openai-completions",
|
|
274
358
|
"baseUrl": "https://opencode.ai/zen/go/v1",
|
|
275
359
|
"reasoning": true,
|
|
@@ -280,84 +364,84 @@
|
|
|
280
364
|
"medium": null,
|
|
281
365
|
"high": "high",
|
|
282
366
|
"xhigh": null,
|
|
283
|
-
"max":
|
|
367
|
+
"max": null
|
|
284
368
|
},
|
|
285
369
|
"input": [
|
|
286
|
-
"text"
|
|
287
|
-
"image"
|
|
370
|
+
"text"
|
|
288
371
|
],
|
|
289
372
|
"cost": {
|
|
290
|
-
"input": 0.
|
|
291
|
-
"output": 0.
|
|
292
|
-
"cacheRead": 0.
|
|
373
|
+
"input": 0.14,
|
|
374
|
+
"output": 0.58,
|
|
375
|
+
"cacheRead": 0.035,
|
|
293
376
|
"cacheWrite": 0
|
|
294
377
|
},
|
|
295
|
-
"contextWindow":
|
|
296
|
-
"maxTokens":
|
|
378
|
+
"contextWindow": 256000,
|
|
379
|
+
"maxTokens": 128000
|
|
297
380
|
},
|
|
298
381
|
{
|
|
299
|
-
"id": "
|
|
300
|
-
"name": "
|
|
382
|
+
"id": "mimo-v2.5-pro",
|
|
383
|
+
"name": "MiMo V2.5 Pro",
|
|
301
384
|
"api": "openai-completions",
|
|
302
385
|
"baseUrl": "https://opencode.ai/zen/go/v1",
|
|
303
386
|
"reasoning": true,
|
|
304
|
-
"thinkingLevelMap": {
|
|
305
|
-
"off": null,
|
|
306
|
-
"minimal": null,
|
|
307
|
-
"low": null,
|
|
308
|
-
"medium": null,
|
|
309
|
-
"high": "high",
|
|
310
|
-
"xhigh": null,
|
|
311
|
-
"max": "max"
|
|
312
|
-
},
|
|
313
387
|
"input": [
|
|
314
388
|
"text"
|
|
315
389
|
],
|
|
316
390
|
"cost": {
|
|
317
|
-
"input": 0.
|
|
318
|
-
"output":
|
|
319
|
-
"cacheRead": 0.
|
|
391
|
+
"input": 0.435,
|
|
392
|
+
"output": 0.87,
|
|
393
|
+
"cacheRead": 0.003625,
|
|
320
394
|
"cacheWrite": 0
|
|
321
395
|
},
|
|
322
|
-
"contextWindow":
|
|
323
|
-
"maxTokens":
|
|
396
|
+
"contextWindow": 1048576,
|
|
397
|
+
"maxTokens": 128000
|
|
324
398
|
},
|
|
325
399
|
{
|
|
326
|
-
"id": "
|
|
327
|
-
"name": "
|
|
328
|
-
"api": "
|
|
329
|
-
"baseUrl": "https://opencode.ai/zen/go
|
|
400
|
+
"id": "qwen3.8-flash",
|
|
401
|
+
"name": "Qwen3.8 Flash",
|
|
402
|
+
"api": "anthropic-messages",
|
|
403
|
+
"baseUrl": "https://opencode.ai/zen/go",
|
|
330
404
|
"reasoning": true,
|
|
405
|
+
"thinkingLevelMap": {
|
|
406
|
+
"off": null,
|
|
407
|
+
"minimal": null,
|
|
408
|
+
"low": "low",
|
|
409
|
+
"medium": "medium",
|
|
410
|
+
"high": null,
|
|
411
|
+
"xhigh": "xhigh",
|
|
412
|
+
"max": null
|
|
413
|
+
},
|
|
331
414
|
"input": [
|
|
332
415
|
"text",
|
|
333
416
|
"image"
|
|
334
417
|
],
|
|
335
418
|
"cost": {
|
|
336
|
-
"input": 0.
|
|
337
|
-
"output": 0.
|
|
338
|
-
"cacheRead": 0.
|
|
339
|
-
"cacheWrite": 0
|
|
419
|
+
"input": 0.15,
|
|
420
|
+
"output": 0.47,
|
|
421
|
+
"cacheRead": 0.016,
|
|
422
|
+
"cacheWrite": 0.2
|
|
340
423
|
},
|
|
341
|
-
"contextWindow":
|
|
424
|
+
"contextWindow": 1000000,
|
|
342
425
|
"maxTokens": 131072
|
|
343
426
|
},
|
|
344
427
|
{
|
|
345
|
-
"id": "
|
|
346
|
-
"name": "
|
|
428
|
+
"id": "mimo-v2.5",
|
|
429
|
+
"name": "MiMo V2.5",
|
|
347
430
|
"api": "openai-completions",
|
|
348
431
|
"baseUrl": "https://opencode.ai/zen/go/v1",
|
|
349
432
|
"reasoning": true,
|
|
350
433
|
"input": [
|
|
351
|
-
"text"
|
|
434
|
+
"text",
|
|
435
|
+
"image"
|
|
352
436
|
],
|
|
353
437
|
"cost": {
|
|
354
|
-
"input": 0,
|
|
355
|
-
"output": 0,
|
|
356
|
-
"cacheRead": 0,
|
|
438
|
+
"input": 0.14,
|
|
439
|
+
"output": 0.28,
|
|
440
|
+
"cacheRead": 0.0028,
|
|
357
441
|
"cacheWrite": 0
|
|
358
442
|
},
|
|
359
|
-
"contextWindow":
|
|
360
|
-
"maxTokens":
|
|
443
|
+
"contextWindow": 1000000,
|
|
444
|
+
"maxTokens": 128000
|
|
361
445
|
},
|
|
362
446
|
{
|
|
363
447
|
"id": "gpt-5.6-luna",
|
|
@@ -388,42 +472,23 @@
|
|
|
388
472
|
"maxTokens": 128000
|
|
389
473
|
},
|
|
390
474
|
{
|
|
391
|
-
"id": "
|
|
392
|
-
"name": "
|
|
393
|
-
"api": "
|
|
394
|
-
"baseUrl": "https://opencode.ai/zen/go
|
|
395
|
-
"reasoning": true,
|
|
396
|
-
"input": [
|
|
397
|
-
"text",
|
|
398
|
-
"image"
|
|
399
|
-
],
|
|
400
|
-
"cost": {
|
|
401
|
-
"input": 0.95,
|
|
402
|
-
"output": 4,
|
|
403
|
-
"cacheRead": 0.19,
|
|
404
|
-
"cacheWrite": 0
|
|
405
|
-
},
|
|
406
|
-
"contextWindow": 262144,
|
|
407
|
-
"maxTokens": 262144
|
|
408
|
-
},
|
|
409
|
-
{
|
|
410
|
-
"id": "mimo-v2.5",
|
|
411
|
-
"name": "MiMo V2.5",
|
|
412
|
-
"api": "openai-completions",
|
|
413
|
-
"baseUrl": "https://opencode.ai/zen/go/v1",
|
|
475
|
+
"id": "qwen3.7-plus",
|
|
476
|
+
"name": "Qwen3.7 Plus",
|
|
477
|
+
"api": "anthropic-messages",
|
|
478
|
+
"baseUrl": "https://opencode.ai/zen/go",
|
|
414
479
|
"reasoning": true,
|
|
415
480
|
"input": [
|
|
416
481
|
"text",
|
|
417
482
|
"image"
|
|
418
483
|
],
|
|
419
484
|
"cost": {
|
|
420
|
-
"input": 0.
|
|
421
|
-
"output":
|
|
422
|
-
"cacheRead": 0.
|
|
423
|
-
"cacheWrite": 0
|
|
485
|
+
"input": 0.4,
|
|
486
|
+
"output": 1.6,
|
|
487
|
+
"cacheRead": 0.04,
|
|
488
|
+
"cacheWrite": 0.5
|
|
424
489
|
},
|
|
425
490
|
"contextWindow": 1000000,
|
|
426
|
-
"maxTokens":
|
|
491
|
+
"maxTokens": 65536
|
|
427
492
|
},
|
|
428
493
|
{
|
|
429
494
|
"id": "glm-5.2",
|
|
@@ -453,36 +518,26 @@
|
|
|
453
518
|
"maxTokens": 131072
|
|
454
519
|
},
|
|
455
520
|
{
|
|
456
|
-
"id": "
|
|
457
|
-
"name": "
|
|
521
|
+
"id": "iceman-contributor-free",
|
|
522
|
+
"name": "Iceman Contributor Free",
|
|
458
523
|
"api": "openai-completions",
|
|
459
524
|
"baseUrl": "https://opencode.ai/zen/go/v1",
|
|
460
525
|
"reasoning": true,
|
|
461
|
-
"thinkingLevelMap": {
|
|
462
|
-
"off": null,
|
|
463
|
-
"minimal": null,
|
|
464
|
-
"low": "low",
|
|
465
|
-
"medium": null,
|
|
466
|
-
"high": "high",
|
|
467
|
-
"xhigh": null,
|
|
468
|
-
"max": "max"
|
|
469
|
-
},
|
|
470
526
|
"input": [
|
|
471
|
-
"text"
|
|
472
|
-
"image"
|
|
527
|
+
"text"
|
|
473
528
|
],
|
|
474
529
|
"cost": {
|
|
475
|
-
"input": 0
|
|
476
|
-
"output": 0
|
|
477
|
-
"cacheRead": 0
|
|
530
|
+
"input": 0,
|
|
531
|
+
"output": 0,
|
|
532
|
+
"cacheRead": 0,
|
|
478
533
|
"cacheWrite": 0
|
|
479
534
|
},
|
|
480
|
-
"contextWindow":
|
|
535
|
+
"contextWindow": 262144,
|
|
481
536
|
"maxTokens": 131072
|
|
482
537
|
},
|
|
483
538
|
{
|
|
484
|
-
"id": "
|
|
485
|
-
"name": "
|
|
539
|
+
"id": "minimax-m3.1-flash",
|
|
540
|
+
"name": "MiniMax M3.1 Flash",
|
|
486
541
|
"api": "openai-completions",
|
|
487
542
|
"baseUrl": "https://opencode.ai/zen/go/v1",
|
|
488
543
|
"reasoning": true,
|
|
@@ -500,53 +555,26 @@
|
|
|
500
555
|
"image"
|
|
501
556
|
],
|
|
502
557
|
"cost": {
|
|
503
|
-
"input": 0.
|
|
504
|
-
"output": 0.
|
|
505
|
-
"cacheRead": 0.
|
|
506
|
-
"cacheWrite": 0.125
|
|
507
|
-
},
|
|
508
|
-
"contextWindow": 1050000,
|
|
509
|
-
"maxTokens": 128000
|
|
510
|
-
},
|
|
511
|
-
{
|
|
512
|
-
"id": "glm-5.3",
|
|
513
|
-
"name": "GLM-5.3",
|
|
514
|
-
"api": "openai-completions",
|
|
515
|
-
"baseUrl": "https://opencode.ai/zen/go/v1",
|
|
516
|
-
"reasoning": true,
|
|
517
|
-
"thinkingLevelMap": {
|
|
518
|
-
"off": null,
|
|
519
|
-
"minimal": null,
|
|
520
|
-
"low": "low",
|
|
521
|
-
"medium": null,
|
|
522
|
-
"high": "high",
|
|
523
|
-
"xhigh": null,
|
|
524
|
-
"max": "max"
|
|
525
|
-
},
|
|
526
|
-
"input": [
|
|
527
|
-
"text"
|
|
528
|
-
],
|
|
529
|
-
"cost": {
|
|
530
|
-
"input": 1.4,
|
|
531
|
-
"output": 4.4,
|
|
532
|
-
"cacheRead": 0.26,
|
|
558
|
+
"input": 0.15,
|
|
559
|
+
"output": 0.6,
|
|
560
|
+
"cacheRead": 0.015,
|
|
533
561
|
"cacheWrite": 0
|
|
534
562
|
},
|
|
535
563
|
"contextWindow": 1000000,
|
|
536
|
-
"maxTokens":
|
|
564
|
+
"maxTokens": 512000
|
|
537
565
|
},
|
|
538
566
|
{
|
|
539
|
-
"id": "
|
|
540
|
-
"name": "
|
|
541
|
-
"api": "
|
|
542
|
-
"baseUrl": "https://opencode.ai/zen/go",
|
|
567
|
+
"id": "muse-spark-1.2-contributor",
|
|
568
|
+
"name": "Muse Spark 1.2 Contributor",
|
|
569
|
+
"api": "openai-completions",
|
|
570
|
+
"baseUrl": "https://opencode.ai/zen/go/v1",
|
|
543
571
|
"reasoning": true,
|
|
544
572
|
"thinkingLevelMap": {
|
|
545
573
|
"off": null,
|
|
546
|
-
"minimal":
|
|
574
|
+
"minimal": "minimal",
|
|
547
575
|
"low": "low",
|
|
548
576
|
"medium": "medium",
|
|
549
|
-
"high":
|
|
577
|
+
"high": "high",
|
|
550
578
|
"xhigh": "xhigh",
|
|
551
579
|
"max": null
|
|
552
580
|
},
|
|
@@ -555,38 +583,20 @@
|
|
|
555
583
|
"image"
|
|
556
584
|
],
|
|
557
585
|
"cost": {
|
|
558
|
-
"input":
|
|
559
|
-
"output":
|
|
560
|
-
"cacheRead": 0.
|
|
561
|
-
"cacheWrite":
|
|
586
|
+
"input": 0.1,
|
|
587
|
+
"output": 0.2,
|
|
588
|
+
"cacheRead": 0.002,
|
|
589
|
+
"cacheWrite": 0
|
|
562
590
|
},
|
|
563
|
-
"contextWindow":
|
|
591
|
+
"contextWindow": 1048576,
|
|
564
592
|
"maxTokens": 131072
|
|
565
593
|
},
|
|
566
594
|
{
|
|
567
|
-
"id": "
|
|
568
|
-
"name": "
|
|
595
|
+
"id": "gpt-6-luna",
|
|
596
|
+
"name": "GPT-6 Luna",
|
|
569
597
|
"api": "openai-completions",
|
|
570
598
|
"baseUrl": "https://opencode.ai/zen/go/v1",
|
|
571
599
|
"reasoning": true,
|
|
572
|
-
"input": [
|
|
573
|
-
"text"
|
|
574
|
-
],
|
|
575
|
-
"cost": {
|
|
576
|
-
"input": 0.435,
|
|
577
|
-
"output": 0.87,
|
|
578
|
-
"cacheRead": 0.003625,
|
|
579
|
-
"cacheWrite": 0
|
|
580
|
-
},
|
|
581
|
-
"contextWindow": 1048576,
|
|
582
|
-
"maxTokens": 128000
|
|
583
|
-
},
|
|
584
|
-
{
|
|
585
|
-
"id": "claude-haiku-5-5",
|
|
586
|
-
"name": "Claude Haiku 5.5",
|
|
587
|
-
"api": "anthropic-messages",
|
|
588
|
-
"baseUrl": "https://opencode.ai/zen/go",
|
|
589
|
-
"reasoning": true,
|
|
590
600
|
"thinkingLevelMap": {
|
|
591
601
|
"off": null,
|
|
592
602
|
"minimal": null,
|
|
@@ -606,27 +616,9 @@
|
|
|
606
616
|
"cacheRead": 0.01,
|
|
607
617
|
"cacheWrite": 0.125
|
|
608
618
|
},
|
|
609
|
-
"contextWindow":
|
|
619
|
+
"contextWindow": 1050000,
|
|
610
620
|
"maxTokens": 128000
|
|
611
621
|
},
|
|
612
|
-
{
|
|
613
|
-
"id": "longcat-2.0",
|
|
614
|
-
"name": "LongCat-2.0",
|
|
615
|
-
"api": "openai-completions",
|
|
616
|
-
"baseUrl": "https://opencode.ai/zen/go/v1",
|
|
617
|
-
"reasoning": true,
|
|
618
|
-
"input": [
|
|
619
|
-
"text"
|
|
620
|
-
],
|
|
621
|
-
"cost": {
|
|
622
|
-
"input": 0.3,
|
|
623
|
-
"output": 1.2,
|
|
624
|
-
"cacheRead": 0.006,
|
|
625
|
-
"cacheWrite": 0
|
|
626
|
-
},
|
|
627
|
-
"contextWindow": 1000000,
|
|
628
|
-
"maxTokens": 131072
|
|
629
|
-
},
|
|
630
622
|
{
|
|
631
623
|
"id": "minimax-m3",
|
|
632
624
|
"name": "MiniMax-M3",
|
|
@@ -647,83 +639,91 @@
|
|
|
647
639
|
"maxTokens": 131072
|
|
648
640
|
},
|
|
649
641
|
{
|
|
650
|
-
"id": "
|
|
651
|
-
"name": "
|
|
642
|
+
"id": "muse-spark-1.3-contributor",
|
|
643
|
+
"name": "Muse Spark 1.3 Contributor",
|
|
652
644
|
"api": "openai-completions",
|
|
653
645
|
"baseUrl": "https://opencode.ai/zen/go/v1",
|
|
654
646
|
"reasoning": true,
|
|
647
|
+
"thinkingLevelMap": {
|
|
648
|
+
"off": null,
|
|
649
|
+
"minimal": "minimal",
|
|
650
|
+
"low": "low",
|
|
651
|
+
"medium": "medium",
|
|
652
|
+
"high": "high",
|
|
653
|
+
"xhigh": "xhigh",
|
|
654
|
+
"max": null
|
|
655
|
+
},
|
|
655
656
|
"input": [
|
|
656
657
|
"text",
|
|
657
658
|
"image"
|
|
658
659
|
],
|
|
659
660
|
"cost": {
|
|
660
|
-
"input": 0.
|
|
661
|
-
"output": 0.
|
|
662
|
-
"cacheRead": 0.
|
|
661
|
+
"input": 0.1,
|
|
662
|
+
"output": 0.2,
|
|
663
|
+
"cacheRead": 0.002,
|
|
663
664
|
"cacheWrite": 0
|
|
664
665
|
},
|
|
665
666
|
"contextWindow": 1048576,
|
|
666
667
|
"maxTokens": 131072
|
|
667
668
|
},
|
|
668
669
|
{
|
|
669
|
-
"id": "
|
|
670
|
-
"name": "
|
|
670
|
+
"id": "kimi-k3",
|
|
671
|
+
"name": "Kimi K3",
|
|
671
672
|
"api": "openai-completions",
|
|
672
673
|
"baseUrl": "https://opencode.ai/zen/go/v1",
|
|
673
674
|
"reasoning": true,
|
|
674
675
|
"thinkingLevelMap": {
|
|
675
676
|
"off": null,
|
|
676
|
-
"minimal":
|
|
677
|
-
"low":
|
|
678
|
-
"medium":
|
|
679
|
-
"high":
|
|
680
|
-
"xhigh":
|
|
681
|
-
"max":
|
|
677
|
+
"minimal": null,
|
|
678
|
+
"low": null,
|
|
679
|
+
"medium": null,
|
|
680
|
+
"high": null,
|
|
681
|
+
"xhigh": null,
|
|
682
|
+
"max": "max"
|
|
682
683
|
},
|
|
683
684
|
"input": [
|
|
684
685
|
"text",
|
|
685
686
|
"image"
|
|
686
687
|
],
|
|
687
688
|
"cost": {
|
|
688
|
-
"input":
|
|
689
|
-
"output":
|
|
690
|
-
"cacheRead": 0.
|
|
691
|
-
"cacheWrite":
|
|
689
|
+
"input": 3,
|
|
690
|
+
"output": 15,
|
|
691
|
+
"cacheRead": 0.3,
|
|
692
|
+
"cacheWrite": 3
|
|
692
693
|
},
|
|
693
694
|
"contextWindow": 1048576,
|
|
694
695
|
"maxTokens": 131072
|
|
695
696
|
},
|
|
696
697
|
{
|
|
697
|
-
"id": "
|
|
698
|
-
"name": "
|
|
698
|
+
"id": "glm-5.3",
|
|
699
|
+
"name": "GLM-5.3",
|
|
699
700
|
"api": "openai-completions",
|
|
700
701
|
"baseUrl": "https://opencode.ai/zen/go/v1",
|
|
701
702
|
"reasoning": true,
|
|
702
703
|
"thinkingLevelMap": {
|
|
703
704
|
"off": null,
|
|
704
|
-
"minimal":
|
|
705
|
+
"minimal": null,
|
|
705
706
|
"low": "low",
|
|
706
|
-
"medium":
|
|
707
|
+
"medium": null,
|
|
707
708
|
"high": "high",
|
|
708
|
-
"xhigh":
|
|
709
|
-
"max":
|
|
709
|
+
"xhigh": null,
|
|
710
|
+
"max": "max"
|
|
710
711
|
},
|
|
711
712
|
"input": [
|
|
712
|
-
"text"
|
|
713
|
-
"image"
|
|
713
|
+
"text"
|
|
714
714
|
],
|
|
715
715
|
"cost": {
|
|
716
|
-
"input":
|
|
717
|
-
"output":
|
|
718
|
-
"cacheRead": 0.
|
|
716
|
+
"input": 1.4,
|
|
717
|
+
"output": 4.4,
|
|
718
|
+
"cacheRead": 0.26,
|
|
719
719
|
"cacheWrite": 0
|
|
720
720
|
},
|
|
721
|
-
"contextWindow":
|
|
721
|
+
"contextWindow": 1000000,
|
|
722
722
|
"maxTokens": 131072
|
|
723
723
|
},
|
|
724
724
|
{
|
|
725
|
-
"id": "
|
|
726
|
-
"name": "
|
|
725
|
+
"id": "kimi-k3.1-pro",
|
|
726
|
+
"name": "Kimi K3.1 Pro",
|
|
727
727
|
"api": "openai-completions",
|
|
728
728
|
"baseUrl": "https://opencode.ai/zen/go/v1",
|
|
729
729
|
"reasoning": true,
|
|
@@ -731,9 +731,9 @@
|
|
|
731
731
|
"off": null,
|
|
732
732
|
"minimal": null,
|
|
733
733
|
"low": "low",
|
|
734
|
-
"medium":
|
|
734
|
+
"medium": null,
|
|
735
735
|
"high": "high",
|
|
736
|
-
"xhigh":
|
|
736
|
+
"xhigh": null,
|
|
737
737
|
"max": "max"
|
|
738
738
|
},
|
|
739
739
|
"input": [
|
|
@@ -741,12 +741,12 @@
|
|
|
741
741
|
"image"
|
|
742
742
|
],
|
|
743
743
|
"cost": {
|
|
744
|
-
"input":
|
|
745
|
-
"output":
|
|
746
|
-
"cacheRead": 0.
|
|
747
|
-
"cacheWrite":
|
|
744
|
+
"input": 2,
|
|
745
|
+
"output": 10,
|
|
746
|
+
"cacheRead": 0.2,
|
|
747
|
+
"cacheWrite": 2
|
|
748
748
|
},
|
|
749
|
-
"contextWindow":
|
|
750
|
-
"maxTokens":
|
|
749
|
+
"contextWindow": 1048576,
|
|
750
|
+
"maxTokens": 131072
|
|
751
751
|
}
|
|
752
752
|
]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-opencode-go-provider",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.46",
|
|
4
4
|
"description": "Opencode Go provider extension for pi - Fast, efficient GLM, Kimi, and MiniMax models through the opencode.ai API",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.ts",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"brace-expansion": "5.0.12"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@earendil-works/pi-coding-agent": "1.
|
|
39
|
+
"@earendil-works/pi-coding-agent": "1.5.0",
|
|
40
40
|
"@types/node": "~22.19.0",
|
|
41
41
|
"typescript": "^6.0.3",
|
|
42
42
|
"vitest": "4.1.7"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Offline Pi 1.
|
|
1
|
+
// Offline Pi 1.5.0 manifest, lifecycle, catalog and real transport regression.
|
|
2
2
|
import assert from 'node:assert/strict';
|
|
3
3
|
import { mkdtemp, readFile, rm } from 'node:fs/promises';
|
|
4
4
|
import { tmpdir } from 'node:os';
|
|
@@ -18,13 +18,13 @@ try {
|
|
|
18
18
|
const hostEntry = process.env.PI1_HOST_ENTRY === 'bundle' ? 'dist/bundle/index.js' : 'dist/index.js';
|
|
19
19
|
const sdk = await import(host ? pathToFileURL(join(host, hostEntry)).href : '@earendil-works/pi-coding-agent');
|
|
20
20
|
const { createAgentSession, DefaultResourceLoader, ModelRuntime, SessionManager, SettingsManager, VERSION } = sdk;
|
|
21
|
-
assert.equal(VERSION, '1.
|
|
22
|
-
assert.equal((await import('@earendil-works/pi-coding-agent')).VERSION, '1.
|
|
21
|
+
assert.equal(VERSION, '1.5.0', 'executing host version');
|
|
22
|
+
assert.equal((await import('@earendil-works/pi-coding-agent')).VERSION, '1.5.0', 'development host version');
|
|
23
23
|
const manifest = JSON.parse(await readFile(join(root, 'package.json'), 'utf8'));
|
|
24
24
|
for (const name of ['@earendil-works/pi-ai', '@earendil-works/pi-agent-core', '@earendil-works/pi-coding-agent', '@earendil-works/pi-tui', 'typebox']) {
|
|
25
25
|
assert.equal(manifest.dependencies?.[name], undefined, `${name}: do not bundle host packages`);
|
|
26
26
|
if (manifest.peerDependencies?.[name] !== undefined) assert.equal(manifest.peerDependencies[name], '*');
|
|
27
|
-
if (name !== 'typebox' && manifest.devDependencies?.[name]) assert.equal(manifest.devDependencies[name], '1.
|
|
27
|
+
if (name !== 'typebox' && manifest.devDependencies?.[name]) assert.equal(manifest.devDependencies[name], '1.5.0');
|
|
28
28
|
}
|
|
29
29
|
const settingsManager = SettingsManager.inMemory({ packages: [root], compaction: { enabled: false }, retry: { enabled: false } });
|
|
30
30
|
const resourceLoader = new DefaultResourceLoader({ cwd: home, agentDir: home, settingsManager,
|