sidekick-shared 0.24.2 → 0.24.3
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/dist/modelContext.js +1 -0
- package/dist/modelInfo.js +135 -12
- package/package.json +1 -1
package/dist/modelContext.js
CHANGED
package/dist/modelInfo.js
CHANGED
|
@@ -78,11 +78,14 @@ const PRICING_TABLE = {
|
|
|
78
78
|
},
|
|
79
79
|
// Sonnet 5 carries the standard rate here. The introductory $2/$10 (through
|
|
80
80
|
// 2026-08-31) arrives via catalog hydration, which supersedes this baseline.
|
|
81
|
+
// Sonnet 5 is $2/$10, not the $3/$15 every earlier Sonnet charged, and it
|
|
82
|
+
// carries no >200K surcharge the way Sonnet 4.5 does. The catalog agrees
|
|
83
|
+
// across all eleven of its Sonnet 5 entries.
|
|
81
84
|
'claude-sonnet-5': {
|
|
82
|
-
inputCostPerMillion:
|
|
83
|
-
outputCostPerMillion:
|
|
84
|
-
cacheWriteCostPerMillion:
|
|
85
|
-
cacheReadCostPerMillion: 0.
|
|
85
|
+
inputCostPerMillion: 2.0,
|
|
86
|
+
outputCostPerMillion: 10.0,
|
|
87
|
+
cacheWriteCostPerMillion: 2.5,
|
|
88
|
+
cacheReadCostPerMillion: 0.2,
|
|
86
89
|
},
|
|
87
90
|
'claude-sonnet-4-6': {
|
|
88
91
|
inputCostPerMillion: 3.0,
|
|
@@ -176,6 +179,21 @@ const PRICING_TABLE = {
|
|
|
176
179
|
cacheReadCostPerMillion: 1.5,
|
|
177
180
|
},
|
|
178
181
|
// ── OpenAI: GPT-4.x family ──
|
|
182
|
+
// The `-tts`, `-transcribe`, and `-realtime-preview` variants also bill above
|
|
183
|
+
// the key they inherit, but no coding agent routes to them, so they are left
|
|
184
|
+
// out rather than carried here. Catalog hydration still prices them correctly.
|
|
185
|
+
'gpt-4.1-mini': {
|
|
186
|
+
inputCostPerMillion: 0.4,
|
|
187
|
+
outputCostPerMillion: 1.6,
|
|
188
|
+
cacheWriteCostPerMillion: 0,
|
|
189
|
+
cacheReadCostPerMillion: 0.1,
|
|
190
|
+
},
|
|
191
|
+
'gpt-4.1-nano': {
|
|
192
|
+
inputCostPerMillion: 0.1,
|
|
193
|
+
outputCostPerMillion: 0.4,
|
|
194
|
+
cacheWriteCostPerMillion: 0,
|
|
195
|
+
cacheReadCostPerMillion: 0.025,
|
|
196
|
+
},
|
|
179
197
|
'gpt-4.1': {
|
|
180
198
|
inputCostPerMillion: 2.0,
|
|
181
199
|
outputCostPerMillion: 8.0,
|
|
@@ -188,6 +206,14 @@ const PRICING_TABLE = {
|
|
|
188
206
|
cacheWriteCostPerMillion: 0,
|
|
189
207
|
cacheReadCostPerMillion: 0.075,
|
|
190
208
|
},
|
|
209
|
+
// The launch snapshot kept its original $5/$15 when gpt-4o was cut to
|
|
210
|
+
// $2.50/$10, so a pinned id must not read the current rate.
|
|
211
|
+
'gpt-4o-2024-05-13': {
|
|
212
|
+
inputCostPerMillion: 5.0,
|
|
213
|
+
outputCostPerMillion: 15.0,
|
|
214
|
+
cacheWriteCostPerMillion: 0,
|
|
215
|
+
cacheReadCostPerMillion: 0,
|
|
216
|
+
},
|
|
191
217
|
'gpt-4o': {
|
|
192
218
|
inputCostPerMillion: 2.5,
|
|
193
219
|
outputCostPerMillion: 10.0,
|
|
@@ -202,8 +228,12 @@ const PRICING_TABLE = {
|
|
|
202
228
|
},
|
|
203
229
|
// ── OpenAI: GPT-5 family ──
|
|
204
230
|
// Published rates, verified against the LiteLLM catalog. Runtime hydration
|
|
205
|
-
// still supersedes these; they are the offline baseline.
|
|
206
|
-
//
|
|
231
|
+
// still supersedes these; they are the offline baseline.
|
|
232
|
+
//
|
|
233
|
+
// Every tier that ships at a rate of its own needs an entry of its own. Keys
|
|
234
|
+
// are matched longest-first, so a `-mini`/`-nano`/`-pro` variant with no entry
|
|
235
|
+
// silently inherits its base model's rate and reports a wrong number rather
|
|
236
|
+
// than none — `gpt-5-nano` read 25x its true cost this way.
|
|
207
237
|
'gpt-5.6-sol': {
|
|
208
238
|
inputCostPerMillion: 5.0,
|
|
209
239
|
outputCostPerMillion: 30.0,
|
|
@@ -216,12 +246,24 @@ const PRICING_TABLE = {
|
|
|
216
246
|
cacheWriteCostPerMillion: 3.13,
|
|
217
247
|
cacheReadCostPerMillion: 0.25,
|
|
218
248
|
},
|
|
249
|
+
'gpt-5.6-luna': {
|
|
250
|
+
inputCostPerMillion: 1.0,
|
|
251
|
+
outputCostPerMillion: 6.0,
|
|
252
|
+
cacheWriteCostPerMillion: 1.25,
|
|
253
|
+
cacheReadCostPerMillion: 0.1,
|
|
254
|
+
},
|
|
219
255
|
'gpt-5.6': {
|
|
220
256
|
inputCostPerMillion: 5.0,
|
|
221
257
|
outputCostPerMillion: 30.0,
|
|
222
258
|
cacheWriteCostPerMillion: 6.25,
|
|
223
259
|
cacheReadCostPerMillion: 0.5,
|
|
224
260
|
},
|
|
261
|
+
'gpt-5.5-pro': {
|
|
262
|
+
inputCostPerMillion: 30.0,
|
|
263
|
+
outputCostPerMillion: 180.0,
|
|
264
|
+
cacheWriteCostPerMillion: 0,
|
|
265
|
+
cacheReadCostPerMillion: 3.0,
|
|
266
|
+
},
|
|
225
267
|
'gpt-5.5': {
|
|
226
268
|
inputCostPerMillion: 5.0,
|
|
227
269
|
outputCostPerMillion: 30.0,
|
|
@@ -234,6 +276,18 @@ const PRICING_TABLE = {
|
|
|
234
276
|
cacheWriteCostPerMillion: 0,
|
|
235
277
|
cacheReadCostPerMillion: 0.07,
|
|
236
278
|
},
|
|
279
|
+
'gpt-5.4-nano': {
|
|
280
|
+
inputCostPerMillion: 0.2,
|
|
281
|
+
outputCostPerMillion: 1.25,
|
|
282
|
+
cacheWriteCostPerMillion: 0,
|
|
283
|
+
cacheReadCostPerMillion: 0.02,
|
|
284
|
+
},
|
|
285
|
+
'gpt-5.4-pro': {
|
|
286
|
+
inputCostPerMillion: 30.0,
|
|
287
|
+
outputCostPerMillion: 180.0,
|
|
288
|
+
cacheWriteCostPerMillion: 0,
|
|
289
|
+
cacheReadCostPerMillion: 3.0,
|
|
290
|
+
},
|
|
237
291
|
'gpt-5.4': {
|
|
238
292
|
inputCostPerMillion: 2.5,
|
|
239
293
|
outputCostPerMillion: 15.0,
|
|
@@ -241,17 +295,63 @@ const PRICING_TABLE = {
|
|
|
241
295
|
cacheReadCostPerMillion: 0.25,
|
|
242
296
|
},
|
|
243
297
|
'gpt-5.3-codex': {
|
|
244
|
-
inputCostPerMillion: 1.
|
|
245
|
-
outputCostPerMillion:
|
|
298
|
+
inputCostPerMillion: 1.75,
|
|
299
|
+
outputCostPerMillion: 14.0,
|
|
246
300
|
cacheWriteCostPerMillion: 0,
|
|
247
|
-
cacheReadCostPerMillion: 0.
|
|
301
|
+
cacheReadCostPerMillion: 0.175,
|
|
302
|
+
},
|
|
303
|
+
'gpt-5.3-chat-latest': {
|
|
304
|
+
inputCostPerMillion: 1.75,
|
|
305
|
+
outputCostPerMillion: 14.0,
|
|
306
|
+
cacheWriteCostPerMillion: 0,
|
|
307
|
+
cacheReadCostPerMillion: 0.175,
|
|
248
308
|
},
|
|
309
|
+
// No bare `gpt-5.3` ships in the catalog; both real variants above are
|
|
310
|
+
// $1.75/$14. This entry stays an estimate and only answers ids that match
|
|
311
|
+
// neither variant.
|
|
249
312
|
'gpt-5.3': {
|
|
250
313
|
inputCostPerMillion: 1.25,
|
|
251
314
|
outputCostPerMillion: 10.0,
|
|
252
315
|
cacheWriteCostPerMillion: 0,
|
|
253
316
|
cacheReadCostPerMillion: 0.125,
|
|
254
317
|
},
|
|
318
|
+
'gpt-5.2-pro': {
|
|
319
|
+
inputCostPerMillion: 21.0,
|
|
320
|
+
outputCostPerMillion: 168.0,
|
|
321
|
+
cacheWriteCostPerMillion: 0,
|
|
322
|
+
cacheReadCostPerMillion: 0,
|
|
323
|
+
},
|
|
324
|
+
// Also answers `gpt-5.2-codex` and `gpt-5.2-chat*`, which bill at this rate.
|
|
325
|
+
'gpt-5.2': {
|
|
326
|
+
inputCostPerMillion: 1.75,
|
|
327
|
+
outputCostPerMillion: 14.0,
|
|
328
|
+
cacheWriteCostPerMillion: 0,
|
|
329
|
+
cacheReadCostPerMillion: 0.175,
|
|
330
|
+
},
|
|
331
|
+
'gpt-5.1-codex-mini': {
|
|
332
|
+
inputCostPerMillion: 0.25,
|
|
333
|
+
outputCostPerMillion: 2.0,
|
|
334
|
+
cacheWriteCostPerMillion: 0,
|
|
335
|
+
cacheReadCostPerMillion: 0.025,
|
|
336
|
+
},
|
|
337
|
+
'gpt-5-pro': {
|
|
338
|
+
inputCostPerMillion: 15.0,
|
|
339
|
+
outputCostPerMillion: 120.0,
|
|
340
|
+
cacheWriteCostPerMillion: 0,
|
|
341
|
+
cacheReadCostPerMillion: 0,
|
|
342
|
+
},
|
|
343
|
+
'gpt-5-mini': {
|
|
344
|
+
inputCostPerMillion: 0.25,
|
|
345
|
+
outputCostPerMillion: 2.0,
|
|
346
|
+
cacheWriteCostPerMillion: 0,
|
|
347
|
+
cacheReadCostPerMillion: 0.025,
|
|
348
|
+
},
|
|
349
|
+
'gpt-5-nano': {
|
|
350
|
+
inputCostPerMillion: 0.05,
|
|
351
|
+
outputCostPerMillion: 0.4,
|
|
352
|
+
cacheWriteCostPerMillion: 0,
|
|
353
|
+
cacheReadCostPerMillion: 0.005,
|
|
354
|
+
},
|
|
255
355
|
'gpt-5': {
|
|
256
356
|
inputCostPerMillion: 1.25,
|
|
257
357
|
outputCostPerMillion: 10.0,
|
|
@@ -259,23 +359,46 @@ const PRICING_TABLE = {
|
|
|
259
359
|
cacheReadCostPerMillion: 0.125,
|
|
260
360
|
},
|
|
261
361
|
// ── OpenAI: o-series (reasoning models) ──
|
|
362
|
+
// The `-pro` and deep-research tiers cost an order of magnitude more than the
|
|
363
|
+
// base model whose key they would otherwise match.
|
|
364
|
+
'o3-deep-research': {
|
|
365
|
+
inputCostPerMillion: 10.0,
|
|
366
|
+
outputCostPerMillion: 40.0,
|
|
367
|
+
cacheWriteCostPerMillion: 0,
|
|
368
|
+
cacheReadCostPerMillion: 2.5,
|
|
369
|
+
},
|
|
262
370
|
'o3-mini': {
|
|
263
371
|
inputCostPerMillion: 1.1,
|
|
264
372
|
outputCostPerMillion: 4.4,
|
|
265
373
|
cacheWriteCostPerMillion: 0,
|
|
266
374
|
cacheReadCostPerMillion: 0.55,
|
|
267
375
|
},
|
|
376
|
+
'o3-pro': {
|
|
377
|
+
inputCostPerMillion: 20.0,
|
|
378
|
+
outputCostPerMillion: 80.0,
|
|
379
|
+
cacheWriteCostPerMillion: 0,
|
|
380
|
+
cacheReadCostPerMillion: 0,
|
|
381
|
+
},
|
|
268
382
|
o3: {
|
|
269
383
|
inputCostPerMillion: 2.0,
|
|
270
384
|
outputCostPerMillion: 8.0,
|
|
271
385
|
cacheWriteCostPerMillion: 0,
|
|
272
386
|
cacheReadCostPerMillion: 0.5,
|
|
273
387
|
},
|
|
388
|
+
// OpenAI cut o1-mini to $1.10/$4.40 after launch; $3/$12 was the launch rate.
|
|
389
|
+
// No bare catalog key settles it — Azure's $1.21/$4.84 is its usual 1.1x
|
|
390
|
+
// uplift on exactly this number, and Replicate's OpenAI passthrough agrees.
|
|
274
391
|
'o1-mini': {
|
|
275
|
-
inputCostPerMillion:
|
|
276
|
-
outputCostPerMillion:
|
|
392
|
+
inputCostPerMillion: 1.1,
|
|
393
|
+
outputCostPerMillion: 4.4,
|
|
277
394
|
cacheWriteCostPerMillion: 0,
|
|
278
|
-
cacheReadCostPerMillion:
|
|
395
|
+
cacheReadCostPerMillion: 0.55,
|
|
396
|
+
},
|
|
397
|
+
'o1-pro': {
|
|
398
|
+
inputCostPerMillion: 150.0,
|
|
399
|
+
outputCostPerMillion: 600.0,
|
|
400
|
+
cacheWriteCostPerMillion: 0,
|
|
401
|
+
cacheReadCostPerMillion: 0,
|
|
279
402
|
},
|
|
280
403
|
o1: {
|
|
281
404
|
inputCostPerMillion: 15.0,
|
package/package.json
CHANGED