@contractspec/lib.ai-providers 3.5.4 → 3.5.5

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/factory.js CHANGED
@@ -2,10 +2,10 @@
2
2
  // src/models.ts
3
3
  var DEFAULT_MODELS = {
4
4
  ollama: "llama3.2",
5
- openai: "gpt-4o",
6
- anthropic: "claude-sonnet-4-20250514",
5
+ openai: "gpt-5.4",
6
+ anthropic: "claude-sonnet-4-6",
7
7
  mistral: "mistral-large-latest",
8
- gemini: "gemini-2.0-flash"
8
+ gemini: "gemini-2.5-flash"
9
9
  };
10
10
  var MODELS = [
11
11
  {
@@ -56,6 +56,19 @@ var MODELS = [
56
56
  streaming: true
57
57
  }
58
58
  },
59
+ {
60
+ id: "gpt-5.4",
61
+ name: "GPT-5.4",
62
+ provider: "openai",
63
+ contextWindow: 1e6,
64
+ capabilities: {
65
+ vision: true,
66
+ tools: true,
67
+ reasoning: true,
68
+ streaming: true
69
+ },
70
+ costPerMillion: { input: 2.5, output: 15 }
71
+ },
59
72
  {
60
73
  id: "gpt-4o",
61
74
  name: "GPT-4o",
@@ -108,6 +121,58 @@ var MODELS = [
108
121
  },
109
122
  costPerMillion: { input: 3, output: 12 }
110
123
  },
124
+ {
125
+ id: "gpt-5-mini",
126
+ name: "GPT-5 Mini",
127
+ provider: "openai",
128
+ contextWindow: 400000,
129
+ capabilities: {
130
+ vision: true,
131
+ tools: true,
132
+ reasoning: false,
133
+ streaming: true
134
+ },
135
+ costPerMillion: { input: 0.25, output: 2 }
136
+ },
137
+ {
138
+ id: "claude-opus-4-6",
139
+ name: "Claude Opus 4.6",
140
+ provider: "anthropic",
141
+ contextWindow: 200000,
142
+ capabilities: {
143
+ vision: true,
144
+ tools: true,
145
+ reasoning: true,
146
+ streaming: true
147
+ },
148
+ costPerMillion: { input: 5, output: 25 }
149
+ },
150
+ {
151
+ id: "claude-sonnet-4-6",
152
+ name: "Claude Sonnet 4.6",
153
+ provider: "anthropic",
154
+ contextWindow: 200000,
155
+ capabilities: {
156
+ vision: true,
157
+ tools: true,
158
+ reasoning: true,
159
+ streaming: true
160
+ },
161
+ costPerMillion: { input: 3, output: 15 }
162
+ },
163
+ {
164
+ id: "claude-haiku-4-5",
165
+ name: "Claude Haiku 4.5",
166
+ provider: "anthropic",
167
+ contextWindow: 200000,
168
+ capabilities: {
169
+ vision: true,
170
+ tools: true,
171
+ reasoning: false,
172
+ streaming: true
173
+ },
174
+ costPerMillion: { input: 1, output: 5 }
175
+ },
111
176
  {
112
177
  id: "claude-sonnet-4-20250514",
113
178
  name: "Claude Sonnet 4",
@@ -147,6 +212,57 @@ var MODELS = [
147
212
  },
148
213
  costPerMillion: { input: 0.8, output: 4 }
149
214
  },
215
+ {
216
+ id: "mistral-large-2512",
217
+ name: "Mistral Large 3",
218
+ provider: "mistral",
219
+ contextWindow: 256000,
220
+ capabilities: {
221
+ vision: true,
222
+ tools: true,
223
+ reasoning: false,
224
+ streaming: true
225
+ },
226
+ costPerMillion: { input: 0.5, output: 1.5 }
227
+ },
228
+ {
229
+ id: "devstral-2512",
230
+ name: "Devstral 2",
231
+ provider: "mistral",
232
+ contextWindow: 256000,
233
+ capabilities: {
234
+ vision: false,
235
+ tools: true,
236
+ reasoning: true,
237
+ streaming: true
238
+ },
239
+ costPerMillion: { input: 0.4, output: 2 }
240
+ },
241
+ {
242
+ id: "mistral-medium-2508",
243
+ name: "Mistral Medium 3.1",
244
+ provider: "mistral",
245
+ contextWindow: 128000,
246
+ capabilities: {
247
+ vision: true,
248
+ tools: true,
249
+ reasoning: false,
250
+ streaming: true
251
+ },
252
+ costPerMillion: { input: 0.4, output: 2 }
253
+ },
254
+ {
255
+ id: "mistral-small-2506",
256
+ name: "Mistral Small 3.2",
257
+ provider: "mistral",
258
+ contextWindow: 128000,
259
+ capabilities: {
260
+ vision: false,
261
+ tools: true,
262
+ reasoning: false,
263
+ streaming: true
264
+ }
265
+ },
150
266
  {
151
267
  id: "mistral-large-latest",
152
268
  name: "Mistral Large",
@@ -272,6 +388,42 @@ var MODELS = [
272
388
  streaming: true
273
389
  },
274
390
  costPerMillion: { input: 0.15, output: 0.6 }
391
+ },
392
+ {
393
+ id: "gemini-3.1-pro-preview",
394
+ name: "Gemini 3.1 Pro",
395
+ provider: "gemini",
396
+ contextWindow: 1e6,
397
+ capabilities: {
398
+ vision: true,
399
+ tools: true,
400
+ reasoning: true,
401
+ streaming: true
402
+ }
403
+ },
404
+ {
405
+ id: "gemini-3.1-flash-lite-preview",
406
+ name: "Gemini 3.1 Flash-Lite",
407
+ provider: "gemini",
408
+ contextWindow: 1e6,
409
+ capabilities: {
410
+ vision: true,
411
+ tools: true,
412
+ reasoning: true,
413
+ streaming: true
414
+ }
415
+ },
416
+ {
417
+ id: "gemini-3-flash-preview",
418
+ name: "Gemini 3 Flash",
419
+ provider: "gemini",
420
+ contextWindow: 1e6,
421
+ capabilities: {
422
+ vision: true,
423
+ tools: true,
424
+ reasoning: false,
425
+ streaming: true
426
+ }
275
427
  }
276
428
  ];
277
429
  function getModelsForProvider(provider) {
package/dist/index.js CHANGED
@@ -2,10 +2,10 @@
2
2
  // src/models.ts
3
3
  var DEFAULT_MODELS = {
4
4
  ollama: "llama3.2",
5
- openai: "gpt-4o",
6
- anthropic: "claude-sonnet-4-20250514",
5
+ openai: "gpt-5.4",
6
+ anthropic: "claude-sonnet-4-6",
7
7
  mistral: "mistral-large-latest",
8
- gemini: "gemini-2.0-flash"
8
+ gemini: "gemini-2.5-flash"
9
9
  };
10
10
  var MODELS = [
11
11
  {
@@ -56,6 +56,19 @@ var MODELS = [
56
56
  streaming: true
57
57
  }
58
58
  },
59
+ {
60
+ id: "gpt-5.4",
61
+ name: "GPT-5.4",
62
+ provider: "openai",
63
+ contextWindow: 1e6,
64
+ capabilities: {
65
+ vision: true,
66
+ tools: true,
67
+ reasoning: true,
68
+ streaming: true
69
+ },
70
+ costPerMillion: { input: 2.5, output: 15 }
71
+ },
59
72
  {
60
73
  id: "gpt-4o",
61
74
  name: "GPT-4o",
@@ -108,6 +121,58 @@ var MODELS = [
108
121
  },
109
122
  costPerMillion: { input: 3, output: 12 }
110
123
  },
124
+ {
125
+ id: "gpt-5-mini",
126
+ name: "GPT-5 Mini",
127
+ provider: "openai",
128
+ contextWindow: 400000,
129
+ capabilities: {
130
+ vision: true,
131
+ tools: true,
132
+ reasoning: false,
133
+ streaming: true
134
+ },
135
+ costPerMillion: { input: 0.25, output: 2 }
136
+ },
137
+ {
138
+ id: "claude-opus-4-6",
139
+ name: "Claude Opus 4.6",
140
+ provider: "anthropic",
141
+ contextWindow: 200000,
142
+ capabilities: {
143
+ vision: true,
144
+ tools: true,
145
+ reasoning: true,
146
+ streaming: true
147
+ },
148
+ costPerMillion: { input: 5, output: 25 }
149
+ },
150
+ {
151
+ id: "claude-sonnet-4-6",
152
+ name: "Claude Sonnet 4.6",
153
+ provider: "anthropic",
154
+ contextWindow: 200000,
155
+ capabilities: {
156
+ vision: true,
157
+ tools: true,
158
+ reasoning: true,
159
+ streaming: true
160
+ },
161
+ costPerMillion: { input: 3, output: 15 }
162
+ },
163
+ {
164
+ id: "claude-haiku-4-5",
165
+ name: "Claude Haiku 4.5",
166
+ provider: "anthropic",
167
+ contextWindow: 200000,
168
+ capabilities: {
169
+ vision: true,
170
+ tools: true,
171
+ reasoning: false,
172
+ streaming: true
173
+ },
174
+ costPerMillion: { input: 1, output: 5 }
175
+ },
111
176
  {
112
177
  id: "claude-sonnet-4-20250514",
113
178
  name: "Claude Sonnet 4",
@@ -147,6 +212,57 @@ var MODELS = [
147
212
  },
148
213
  costPerMillion: { input: 0.8, output: 4 }
149
214
  },
215
+ {
216
+ id: "mistral-large-2512",
217
+ name: "Mistral Large 3",
218
+ provider: "mistral",
219
+ contextWindow: 256000,
220
+ capabilities: {
221
+ vision: true,
222
+ tools: true,
223
+ reasoning: false,
224
+ streaming: true
225
+ },
226
+ costPerMillion: { input: 0.5, output: 1.5 }
227
+ },
228
+ {
229
+ id: "devstral-2512",
230
+ name: "Devstral 2",
231
+ provider: "mistral",
232
+ contextWindow: 256000,
233
+ capabilities: {
234
+ vision: false,
235
+ tools: true,
236
+ reasoning: true,
237
+ streaming: true
238
+ },
239
+ costPerMillion: { input: 0.4, output: 2 }
240
+ },
241
+ {
242
+ id: "mistral-medium-2508",
243
+ name: "Mistral Medium 3.1",
244
+ provider: "mistral",
245
+ contextWindow: 128000,
246
+ capabilities: {
247
+ vision: true,
248
+ tools: true,
249
+ reasoning: false,
250
+ streaming: true
251
+ },
252
+ costPerMillion: { input: 0.4, output: 2 }
253
+ },
254
+ {
255
+ id: "mistral-small-2506",
256
+ name: "Mistral Small 3.2",
257
+ provider: "mistral",
258
+ contextWindow: 128000,
259
+ capabilities: {
260
+ vision: false,
261
+ tools: true,
262
+ reasoning: false,
263
+ streaming: true
264
+ }
265
+ },
150
266
  {
151
267
  id: "mistral-large-latest",
152
268
  name: "Mistral Large",
@@ -272,6 +388,42 @@ var MODELS = [
272
388
  streaming: true
273
389
  },
274
390
  costPerMillion: { input: 0.15, output: 0.6 }
391
+ },
392
+ {
393
+ id: "gemini-3.1-pro-preview",
394
+ name: "Gemini 3.1 Pro",
395
+ provider: "gemini",
396
+ contextWindow: 1e6,
397
+ capabilities: {
398
+ vision: true,
399
+ tools: true,
400
+ reasoning: true,
401
+ streaming: true
402
+ }
403
+ },
404
+ {
405
+ id: "gemini-3.1-flash-lite-preview",
406
+ name: "Gemini 3.1 Flash-Lite",
407
+ provider: "gemini",
408
+ contextWindow: 1e6,
409
+ capabilities: {
410
+ vision: true,
411
+ tools: true,
412
+ reasoning: true,
413
+ streaming: true
414
+ }
415
+ },
416
+ {
417
+ id: "gemini-3-flash-preview",
418
+ name: "Gemini 3 Flash",
419
+ provider: "gemini",
420
+ contextWindow: 1e6,
421
+ capabilities: {
422
+ vision: true,
423
+ tools: true,
424
+ reasoning: false,
425
+ streaming: true
426
+ }
275
427
  }
276
428
  ];
277
429
  function getModelsForProvider(provider) {
package/dist/legacy.js CHANGED
@@ -2,10 +2,10 @@
2
2
  // src/models.ts
3
3
  var DEFAULT_MODELS = {
4
4
  ollama: "llama3.2",
5
- openai: "gpt-4o",
6
- anthropic: "claude-sonnet-4-20250514",
5
+ openai: "gpt-5.4",
6
+ anthropic: "claude-sonnet-4-6",
7
7
  mistral: "mistral-large-latest",
8
- gemini: "gemini-2.0-flash"
8
+ gemini: "gemini-2.5-flash"
9
9
  };
10
10
  var MODELS = [
11
11
  {
@@ -56,6 +56,19 @@ var MODELS = [
56
56
  streaming: true
57
57
  }
58
58
  },
59
+ {
60
+ id: "gpt-5.4",
61
+ name: "GPT-5.4",
62
+ provider: "openai",
63
+ contextWindow: 1e6,
64
+ capabilities: {
65
+ vision: true,
66
+ tools: true,
67
+ reasoning: true,
68
+ streaming: true
69
+ },
70
+ costPerMillion: { input: 2.5, output: 15 }
71
+ },
59
72
  {
60
73
  id: "gpt-4o",
61
74
  name: "GPT-4o",
@@ -108,6 +121,58 @@ var MODELS = [
108
121
  },
109
122
  costPerMillion: { input: 3, output: 12 }
110
123
  },
124
+ {
125
+ id: "gpt-5-mini",
126
+ name: "GPT-5 Mini",
127
+ provider: "openai",
128
+ contextWindow: 400000,
129
+ capabilities: {
130
+ vision: true,
131
+ tools: true,
132
+ reasoning: false,
133
+ streaming: true
134
+ },
135
+ costPerMillion: { input: 0.25, output: 2 }
136
+ },
137
+ {
138
+ id: "claude-opus-4-6",
139
+ name: "Claude Opus 4.6",
140
+ provider: "anthropic",
141
+ contextWindow: 200000,
142
+ capabilities: {
143
+ vision: true,
144
+ tools: true,
145
+ reasoning: true,
146
+ streaming: true
147
+ },
148
+ costPerMillion: { input: 5, output: 25 }
149
+ },
150
+ {
151
+ id: "claude-sonnet-4-6",
152
+ name: "Claude Sonnet 4.6",
153
+ provider: "anthropic",
154
+ contextWindow: 200000,
155
+ capabilities: {
156
+ vision: true,
157
+ tools: true,
158
+ reasoning: true,
159
+ streaming: true
160
+ },
161
+ costPerMillion: { input: 3, output: 15 }
162
+ },
163
+ {
164
+ id: "claude-haiku-4-5",
165
+ name: "Claude Haiku 4.5",
166
+ provider: "anthropic",
167
+ contextWindow: 200000,
168
+ capabilities: {
169
+ vision: true,
170
+ tools: true,
171
+ reasoning: false,
172
+ streaming: true
173
+ },
174
+ costPerMillion: { input: 1, output: 5 }
175
+ },
111
176
  {
112
177
  id: "claude-sonnet-4-20250514",
113
178
  name: "Claude Sonnet 4",
@@ -147,6 +212,57 @@ var MODELS = [
147
212
  },
148
213
  costPerMillion: { input: 0.8, output: 4 }
149
214
  },
215
+ {
216
+ id: "mistral-large-2512",
217
+ name: "Mistral Large 3",
218
+ provider: "mistral",
219
+ contextWindow: 256000,
220
+ capabilities: {
221
+ vision: true,
222
+ tools: true,
223
+ reasoning: false,
224
+ streaming: true
225
+ },
226
+ costPerMillion: { input: 0.5, output: 1.5 }
227
+ },
228
+ {
229
+ id: "devstral-2512",
230
+ name: "Devstral 2",
231
+ provider: "mistral",
232
+ contextWindow: 256000,
233
+ capabilities: {
234
+ vision: false,
235
+ tools: true,
236
+ reasoning: true,
237
+ streaming: true
238
+ },
239
+ costPerMillion: { input: 0.4, output: 2 }
240
+ },
241
+ {
242
+ id: "mistral-medium-2508",
243
+ name: "Mistral Medium 3.1",
244
+ provider: "mistral",
245
+ contextWindow: 128000,
246
+ capabilities: {
247
+ vision: true,
248
+ tools: true,
249
+ reasoning: false,
250
+ streaming: true
251
+ },
252
+ costPerMillion: { input: 0.4, output: 2 }
253
+ },
254
+ {
255
+ id: "mistral-small-2506",
256
+ name: "Mistral Small 3.2",
257
+ provider: "mistral",
258
+ contextWindow: 128000,
259
+ capabilities: {
260
+ vision: false,
261
+ tools: true,
262
+ reasoning: false,
263
+ streaming: true
264
+ }
265
+ },
150
266
  {
151
267
  id: "mistral-large-latest",
152
268
  name: "Mistral Large",
@@ -272,6 +388,42 @@ var MODELS = [
272
388
  streaming: true
273
389
  },
274
390
  costPerMillion: { input: 0.15, output: 0.6 }
391
+ },
392
+ {
393
+ id: "gemini-3.1-pro-preview",
394
+ name: "Gemini 3.1 Pro",
395
+ provider: "gemini",
396
+ contextWindow: 1e6,
397
+ capabilities: {
398
+ vision: true,
399
+ tools: true,
400
+ reasoning: true,
401
+ streaming: true
402
+ }
403
+ },
404
+ {
405
+ id: "gemini-3.1-flash-lite-preview",
406
+ name: "Gemini 3.1 Flash-Lite",
407
+ provider: "gemini",
408
+ contextWindow: 1e6,
409
+ capabilities: {
410
+ vision: true,
411
+ tools: true,
412
+ reasoning: true,
413
+ streaming: true
414
+ }
415
+ },
416
+ {
417
+ id: "gemini-3-flash-preview",
418
+ name: "Gemini 3 Flash",
419
+ provider: "gemini",
420
+ contextWindow: 1e6,
421
+ capabilities: {
422
+ vision: true,
423
+ tools: true,
424
+ reasoning: false,
425
+ streaming: true
426
+ }
275
427
  }
276
428
  ];
277
429
  function getModelsForProvider(provider) {