@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.
@@ -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) {
@@ -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) {