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