@ai-sdk/anthropic 4.0.112 → 4.0.113
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/CHANGELOG.md +12 -0
- package/dist/index.d.ts +194 -62
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +190 -48
- package/dist/index.js.map +1 -1
- package/dist/internal/index.d.ts +194 -62
- package/dist/internal/index.d.ts.map +1 -1
- package/dist/internal/index.js +189 -47
- package/dist/internal/index.js.map +1 -1
- package/docs/05-anthropic.mdx +60 -21
- package/package.json +8 -4
- package/src/anthropic-language-model-options.ts +3 -2
- package/src/anthropic-model-catalog.ts +209 -47
|
@@ -96,6 +96,30 @@ const onlyWithoutThinking = {
|
|
|
96
96
|
condition: 'Only supported when thinking is disabled.',
|
|
97
97
|
} as const;
|
|
98
98
|
|
|
99
|
+
const computerToolsetOnly = {
|
|
100
|
+
condition: 'Requires computer_toolset_20260801.',
|
|
101
|
+
} as const;
|
|
102
|
+
|
|
103
|
+
const recentComputerProtocols = {
|
|
104
|
+
condition: 'Requires computer_20251124 or computer_toolset_20260801.',
|
|
105
|
+
} as const;
|
|
106
|
+
|
|
107
|
+
const computer20250124Only = {
|
|
108
|
+
condition: 'Requires computer_20250124.',
|
|
109
|
+
} as const;
|
|
110
|
+
|
|
111
|
+
const computer20251124Only = {
|
|
112
|
+
condition: 'Requires computer_20251124.',
|
|
113
|
+
} as const;
|
|
114
|
+
|
|
115
|
+
const computer2025Protocols = {
|
|
116
|
+
condition: 'Requires computer_20250124 or computer_20251124.',
|
|
117
|
+
} as const;
|
|
118
|
+
|
|
119
|
+
const contextManagementWithoutCompaction = {
|
|
120
|
+
condition: 'Use clear_tool_uses_20250919; compaction edits are unsupported.',
|
|
121
|
+
} as const;
|
|
122
|
+
|
|
99
123
|
type AnthropicThinkingMode = 'adaptive' | 'budget' | 'between-tools';
|
|
100
124
|
|
|
101
125
|
/**
|
|
@@ -129,15 +153,23 @@ export type AnthropicLanguageModelRow = {
|
|
|
129
153
|
canBeDisabled: false | 'up-to-high-effort' | 'always';
|
|
130
154
|
};
|
|
131
155
|
/**
|
|
132
|
-
*
|
|
156
|
+
* Native effort levels. `[]` means the effort option is unsupported;
|
|
157
|
+
* `undefined` means no exhaustive list is verified. `xhigh`
|
|
133
158
|
* is supported only when it is listed here.
|
|
134
159
|
*/
|
|
135
160
|
reasoningEfforts: readonly string[] | undefined;
|
|
136
|
-
/**
|
|
161
|
+
/**
|
|
162
|
+
* Configurable temperature, topP, and topK support. Acceptance of a fixed
|
|
163
|
+
* default (temperature 1) does not establish configurable sampling support.
|
|
164
|
+
*/
|
|
137
165
|
sampling: ModelCapability;
|
|
138
166
|
forcedToolUse: boolean;
|
|
167
|
+
computerUse: ModelCapability;
|
|
139
168
|
toolSearch: ModelCapability;
|
|
140
169
|
compaction: ModelCapability;
|
|
170
|
+
contextManagement: ModelCapability;
|
|
171
|
+
midConversationSystemMessages: ModelCapability;
|
|
172
|
+
inferenceGeo: ModelCapability;
|
|
141
173
|
/** `effort` provider option. It was introduced with claude-opus-4-5. */
|
|
142
174
|
effort: ModelCapability;
|
|
143
175
|
/** `speed` provider option (fast mode). */
|
|
@@ -158,12 +190,16 @@ const languageModelDefinitions = {
|
|
|
158
190
|
nativeStructuredOutput: true,
|
|
159
191
|
thinking: { modes: ['adaptive'], canBeDisabled: false },
|
|
160
192
|
reasoningEfforts: ['low', 'medium', 'high', 'xhigh', 'max'],
|
|
161
|
-
sampling:
|
|
193
|
+
sampling: false,
|
|
162
194
|
forcedToolUse: false,
|
|
195
|
+
computerUse: computerToolsetOnly,
|
|
163
196
|
toolSearch: true,
|
|
164
197
|
compaction: true,
|
|
198
|
+
contextManagement: true,
|
|
199
|
+
midConversationSystemMessages: true,
|
|
200
|
+
inferenceGeo: true,
|
|
165
201
|
effort: true,
|
|
166
|
-
speed:
|
|
202
|
+
speed: true,
|
|
167
203
|
taskBudget: 'unknown',
|
|
168
204
|
},
|
|
169
205
|
'claude-opus-5': {
|
|
@@ -172,16 +208,20 @@ const languageModelDefinitions = {
|
|
|
172
208
|
knownModel: true,
|
|
173
209
|
nativeStructuredOutput: true,
|
|
174
210
|
thinking: {
|
|
175
|
-
modes: ['adaptive'
|
|
211
|
+
modes: ['adaptive'],
|
|
176
212
|
canBeDisabled: 'up-to-high-effort',
|
|
177
213
|
},
|
|
178
214
|
reasoningEfforts: ['low', 'medium', 'high', 'xhigh', 'max'],
|
|
179
|
-
sampling:
|
|
215
|
+
sampling: false,
|
|
180
216
|
forcedToolUse: true,
|
|
217
|
+
computerUse: recentComputerProtocols,
|
|
181
218
|
toolSearch: true,
|
|
182
219
|
compaction: true,
|
|
220
|
+
contextManagement: true,
|
|
221
|
+
midConversationSystemMessages: true,
|
|
222
|
+
inferenceGeo: true,
|
|
183
223
|
effort: true,
|
|
184
|
-
speed:
|
|
224
|
+
speed: true,
|
|
185
225
|
taskBudget: 'unknown',
|
|
186
226
|
},
|
|
187
227
|
'claude-sonnet-5-5': {
|
|
@@ -191,10 +231,14 @@ const languageModelDefinitions = {
|
|
|
191
231
|
nativeStructuredOutput: true,
|
|
192
232
|
thinking: { modes: ['adaptive', 'between-tools'], canBeDisabled: false },
|
|
193
233
|
reasoningEfforts: ['low', 'medium', 'high', 'xhigh', 'max'],
|
|
194
|
-
sampling:
|
|
234
|
+
sampling: false,
|
|
195
235
|
forcedToolUse: false,
|
|
236
|
+
computerUse: computerToolsetOnly,
|
|
196
237
|
toolSearch: true,
|
|
197
238
|
compaction: true,
|
|
239
|
+
contextManagement: true,
|
|
240
|
+
midConversationSystemMessages: true,
|
|
241
|
+
inferenceGeo: true,
|
|
198
242
|
effort: true,
|
|
199
243
|
speed: false,
|
|
200
244
|
taskBudget: 'unknown',
|
|
@@ -204,12 +248,16 @@ const languageModelDefinitions = {
|
|
|
204
248
|
maxOutputTokens: 128000,
|
|
205
249
|
knownModel: true,
|
|
206
250
|
nativeStructuredOutput: true,
|
|
207
|
-
thinking: { modes: ['adaptive'
|
|
251
|
+
thinking: { modes: ['adaptive'], canBeDisabled: 'always' },
|
|
208
252
|
reasoningEfforts: ['low', 'medium', 'high', 'xhigh', 'max'],
|
|
209
|
-
sampling:
|
|
253
|
+
sampling: false,
|
|
210
254
|
forcedToolUse: true,
|
|
255
|
+
computerUse: recentComputerProtocols,
|
|
211
256
|
toolSearch: true,
|
|
212
257
|
compaction: true,
|
|
258
|
+
contextManagement: true,
|
|
259
|
+
midConversationSystemMessages: true,
|
|
260
|
+
inferenceGeo: true,
|
|
213
261
|
effort: true,
|
|
214
262
|
speed: false,
|
|
215
263
|
taskBudget: 'unknown',
|
|
@@ -221,10 +269,14 @@ const languageModelDefinitions = {
|
|
|
221
269
|
nativeStructuredOutput: true,
|
|
222
270
|
thinking: { modes: ['adaptive'], canBeDisabled: 'up-to-high-effort' },
|
|
223
271
|
reasoningEfforts: ['low', 'medium', 'high', 'xhigh', 'max'],
|
|
224
|
-
sampling:
|
|
272
|
+
sampling: false,
|
|
225
273
|
forcedToolUse: true,
|
|
274
|
+
computerUse: computerToolsetOnly,
|
|
226
275
|
toolSearch: true,
|
|
227
276
|
compaction: true,
|
|
277
|
+
contextManagement: true,
|
|
278
|
+
midConversationSystemMessages: true,
|
|
279
|
+
inferenceGeo: true,
|
|
228
280
|
effort: true,
|
|
229
281
|
speed: false,
|
|
230
282
|
taskBudget: 'unknown',
|
|
@@ -236,12 +288,16 @@ const languageModelDefinitions = {
|
|
|
236
288
|
nativeStructuredOutput: true,
|
|
237
289
|
thinking: { modes: ['adaptive'], canBeDisabled: false },
|
|
238
290
|
reasoningEfforts: ['low', 'medium', 'high', 'xhigh', 'max'],
|
|
239
|
-
sampling:
|
|
291
|
+
sampling: false,
|
|
240
292
|
forcedToolUse: false,
|
|
293
|
+
computerUse: computerToolsetOnly,
|
|
241
294
|
toolSearch: true,
|
|
242
295
|
compaction: true,
|
|
296
|
+
contextManagement: true,
|
|
297
|
+
midConversationSystemMessages: true,
|
|
298
|
+
inferenceGeo: true,
|
|
243
299
|
effort: true,
|
|
244
|
-
speed:
|
|
300
|
+
speed: true,
|
|
245
301
|
taskBudget: 'unknown',
|
|
246
302
|
},
|
|
247
303
|
'claude-fable-5-1': {
|
|
@@ -251,10 +307,14 @@ const languageModelDefinitions = {
|
|
|
251
307
|
nativeStructuredOutput: true,
|
|
252
308
|
thinking: { modes: ['adaptive'], canBeDisabled: false },
|
|
253
309
|
reasoningEfforts: ['low', 'medium', 'high', 'xhigh', 'max'],
|
|
254
|
-
sampling:
|
|
310
|
+
sampling: false,
|
|
255
311
|
forcedToolUse: false,
|
|
312
|
+
computerUse: recentComputerProtocols,
|
|
256
313
|
toolSearch: true,
|
|
257
314
|
compaction: true,
|
|
315
|
+
contextManagement: true,
|
|
316
|
+
midConversationSystemMessages: true,
|
|
317
|
+
inferenceGeo: true,
|
|
258
318
|
effort: true,
|
|
259
319
|
speed: false,
|
|
260
320
|
taskBudget: 'unknown',
|
|
@@ -266,10 +326,14 @@ const languageModelDefinitions = {
|
|
|
266
326
|
nativeStructuredOutput: true,
|
|
267
327
|
thinking: { modes: ['adaptive'], canBeDisabled: false },
|
|
268
328
|
reasoningEfforts: ['low', 'medium', 'high', 'xhigh', 'max'],
|
|
269
|
-
sampling:
|
|
329
|
+
sampling: false,
|
|
270
330
|
forcedToolUse: true,
|
|
331
|
+
computerUse: recentComputerProtocols,
|
|
271
332
|
toolSearch: true,
|
|
272
333
|
compaction: true,
|
|
334
|
+
contextManagement: true,
|
|
335
|
+
midConversationSystemMessages: true,
|
|
336
|
+
inferenceGeo: true,
|
|
273
337
|
effort: true,
|
|
274
338
|
speed: false,
|
|
275
339
|
taskBudget: 'unknown',
|
|
@@ -279,14 +343,18 @@ const languageModelDefinitions = {
|
|
|
279
343
|
maxOutputTokens: 128000,
|
|
280
344
|
knownModel: true,
|
|
281
345
|
nativeStructuredOutput: true,
|
|
282
|
-
thinking: { modes: ['adaptive'
|
|
346
|
+
thinking: { modes: ['adaptive'], canBeDisabled: 'always' },
|
|
283
347
|
reasoningEfforts: ['low', 'medium', 'high', 'xhigh', 'max'],
|
|
284
|
-
sampling:
|
|
348
|
+
sampling: false,
|
|
285
349
|
forcedToolUse: true,
|
|
350
|
+
computerUse: recentComputerProtocols,
|
|
286
351
|
toolSearch: true,
|
|
287
352
|
compaction: true,
|
|
353
|
+
contextManagement: true,
|
|
354
|
+
midConversationSystemMessages: true,
|
|
355
|
+
inferenceGeo: true,
|
|
288
356
|
effort: true,
|
|
289
|
-
speed:
|
|
357
|
+
speed: true,
|
|
290
358
|
taskBudget: 'unknown',
|
|
291
359
|
},
|
|
292
360
|
'claude-opus-4-7': {
|
|
@@ -294,12 +362,16 @@ const languageModelDefinitions = {
|
|
|
294
362
|
maxOutputTokens: 128000,
|
|
295
363
|
knownModel: true,
|
|
296
364
|
nativeStructuredOutput: true,
|
|
297
|
-
thinking: { modes: ['adaptive'
|
|
365
|
+
thinking: { modes: ['adaptive'], canBeDisabled: 'always' },
|
|
298
366
|
reasoningEfforts: ['low', 'medium', 'high', 'xhigh', 'max'],
|
|
299
|
-
sampling:
|
|
367
|
+
sampling: false,
|
|
300
368
|
forcedToolUse: true,
|
|
369
|
+
computerUse: computer20251124Only,
|
|
301
370
|
toolSearch: true,
|
|
302
371
|
compaction: true,
|
|
372
|
+
contextManagement: true,
|
|
373
|
+
midConversationSystemMessages: false,
|
|
374
|
+
inferenceGeo: true,
|
|
303
375
|
effort: true,
|
|
304
376
|
speed: false,
|
|
305
377
|
taskBudget: true,
|
|
@@ -310,14 +382,18 @@ const languageModelDefinitions = {
|
|
|
310
382
|
knownModel: true,
|
|
311
383
|
nativeStructuredOutput: true,
|
|
312
384
|
thinking: { modes: ['adaptive', 'budget'], canBeDisabled: 'always' },
|
|
313
|
-
reasoningEfforts:
|
|
314
|
-
sampling:
|
|
385
|
+
reasoningEfforts: ['low', 'medium', 'high', 'max'],
|
|
386
|
+
sampling: onlyWithoutThinking,
|
|
315
387
|
forcedToolUse: true,
|
|
388
|
+
computerUse: computer20251124Only,
|
|
316
389
|
toolSearch: true,
|
|
317
390
|
compaction: true,
|
|
391
|
+
contextManagement: true,
|
|
392
|
+
midConversationSystemMessages: false,
|
|
393
|
+
inferenceGeo: true,
|
|
318
394
|
effort: true,
|
|
319
395
|
speed: true,
|
|
320
|
-
taskBudget:
|
|
396
|
+
taskBudget: false,
|
|
321
397
|
},
|
|
322
398
|
'claude-sonnet-4-6': {
|
|
323
399
|
documented: true,
|
|
@@ -325,14 +401,18 @@ const languageModelDefinitions = {
|
|
|
325
401
|
knownModel: true,
|
|
326
402
|
nativeStructuredOutput: true,
|
|
327
403
|
thinking: { modes: ['adaptive', 'budget'], canBeDisabled: 'always' },
|
|
328
|
-
reasoningEfforts:
|
|
329
|
-
sampling:
|
|
404
|
+
reasoningEfforts: ['low', 'medium', 'high', 'max'],
|
|
405
|
+
sampling: onlyWithoutThinking,
|
|
330
406
|
forcedToolUse: true,
|
|
407
|
+
computerUse: computer20251124Only,
|
|
331
408
|
toolSearch: true,
|
|
332
409
|
compaction: true,
|
|
410
|
+
contextManagement: true,
|
|
411
|
+
midConversationSystemMessages: false,
|
|
412
|
+
inferenceGeo: true,
|
|
333
413
|
effort: true,
|
|
334
414
|
speed: false,
|
|
335
|
-
taskBudget:
|
|
415
|
+
taskBudget: false,
|
|
336
416
|
},
|
|
337
417
|
'claude-opus-4-5': {
|
|
338
418
|
documented: true,
|
|
@@ -340,14 +420,18 @@ const languageModelDefinitions = {
|
|
|
340
420
|
knownModel: true,
|
|
341
421
|
nativeStructuredOutput: true,
|
|
342
422
|
thinking: { modes: ['budget'], canBeDisabled: 'always' },
|
|
343
|
-
reasoningEfforts:
|
|
344
|
-
sampling:
|
|
423
|
+
reasoningEfforts: ['low', 'medium', 'high'],
|
|
424
|
+
sampling: onlyWithoutThinking,
|
|
345
425
|
forcedToolUse: true,
|
|
426
|
+
computerUse: computer2025Protocols,
|
|
346
427
|
toolSearch: true,
|
|
347
428
|
compaction: false,
|
|
429
|
+
contextManagement: contextManagementWithoutCompaction,
|
|
430
|
+
midConversationSystemMessages: false,
|
|
431
|
+
inferenceGeo: false,
|
|
348
432
|
effort: true,
|
|
349
433
|
speed: false,
|
|
350
|
-
taskBudget:
|
|
434
|
+
taskBudget: false,
|
|
351
435
|
},
|
|
352
436
|
'claude-haiku-4-5': {
|
|
353
437
|
documented: true,
|
|
@@ -355,14 +439,18 @@ const languageModelDefinitions = {
|
|
|
355
439
|
knownModel: true,
|
|
356
440
|
nativeStructuredOutput: true,
|
|
357
441
|
thinking: { modes: ['budget'], canBeDisabled: 'always' },
|
|
358
|
-
reasoningEfforts:
|
|
359
|
-
sampling:
|
|
442
|
+
reasoningEfforts: [],
|
|
443
|
+
sampling: onlyWithoutThinking,
|
|
360
444
|
forcedToolUse: true,
|
|
445
|
+
computerUse: computer20250124Only,
|
|
361
446
|
toolSearch: true,
|
|
362
447
|
compaction: false,
|
|
448
|
+
contextManagement: contextManagementWithoutCompaction,
|
|
449
|
+
midConversationSystemMessages: false,
|
|
450
|
+
inferenceGeo: false,
|
|
363
451
|
effort: false,
|
|
364
452
|
speed: false,
|
|
365
|
-
taskBudget:
|
|
453
|
+
taskBudget: false,
|
|
366
454
|
},
|
|
367
455
|
'claude-sonnet-4-5': {
|
|
368
456
|
documented: true,
|
|
@@ -370,17 +458,25 @@ const languageModelDefinitions = {
|
|
|
370
458
|
knownModel: true,
|
|
371
459
|
nativeStructuredOutput: true,
|
|
372
460
|
thinking: { modes: ['budget'], canBeDisabled: 'always' },
|
|
373
|
-
reasoningEfforts:
|
|
374
|
-
sampling:
|
|
461
|
+
reasoningEfforts: [],
|
|
462
|
+
sampling: onlyWithoutThinking,
|
|
375
463
|
forcedToolUse: true,
|
|
464
|
+
computerUse: computer20250124Only,
|
|
376
465
|
toolSearch: true,
|
|
377
466
|
compaction: false,
|
|
467
|
+
contextManagement: contextManagementWithoutCompaction,
|
|
468
|
+
midConversationSystemMessages: false,
|
|
469
|
+
inferenceGeo: false,
|
|
378
470
|
effort: false,
|
|
379
471
|
speed: false,
|
|
380
|
-
taskBudget:
|
|
472
|
+
taskBudget: false,
|
|
381
473
|
},
|
|
474
|
+
// Hidden after the 2026-11-30 audit returned 404s for these IDs. Their
|
|
475
|
+
// historical capability declarations could not be revalidated and may be
|
|
476
|
+
// outdated. Retain the rows for request compatibility; hiding a model does
|
|
477
|
+
// not establish unsupported capabilities or confirm its retirement.
|
|
382
478
|
'claude-opus-4-1': {
|
|
383
|
-
documented:
|
|
479
|
+
documented: false,
|
|
384
480
|
maxOutputTokens: 32000,
|
|
385
481
|
knownModel: true,
|
|
386
482
|
nativeStructuredOutput: true,
|
|
@@ -388,14 +484,18 @@ const languageModelDefinitions = {
|
|
|
388
484
|
reasoningEfforts: undefined,
|
|
389
485
|
sampling: true,
|
|
390
486
|
forcedToolUse: true,
|
|
487
|
+
computerUse: true,
|
|
391
488
|
toolSearch: false,
|
|
392
489
|
compaction: false,
|
|
490
|
+
contextManagement: true,
|
|
491
|
+
midConversationSystemMessages: true,
|
|
492
|
+
inferenceGeo: true,
|
|
393
493
|
effort: false,
|
|
394
494
|
speed: false,
|
|
395
495
|
taskBudget: 'unknown',
|
|
396
496
|
},
|
|
397
497
|
'claude-opus-4-0': {
|
|
398
|
-
documented:
|
|
498
|
+
documented: false,
|
|
399
499
|
maxOutputTokens: 32000,
|
|
400
500
|
knownModel: true,
|
|
401
501
|
nativeStructuredOutput: false,
|
|
@@ -403,14 +503,18 @@ const languageModelDefinitions = {
|
|
|
403
503
|
reasoningEfforts: undefined,
|
|
404
504
|
sampling: true,
|
|
405
505
|
forcedToolUse: true,
|
|
506
|
+
computerUse: true,
|
|
406
507
|
toolSearch: false,
|
|
407
508
|
compaction: false,
|
|
509
|
+
contextManagement: true,
|
|
510
|
+
midConversationSystemMessages: true,
|
|
511
|
+
inferenceGeo: true,
|
|
408
512
|
effort: false,
|
|
409
513
|
speed: false,
|
|
410
514
|
taskBudget: 'unknown',
|
|
411
515
|
},
|
|
412
516
|
'claude-sonnet-4-0': {
|
|
413
|
-
documented:
|
|
517
|
+
documented: false,
|
|
414
518
|
maxOutputTokens: 64000,
|
|
415
519
|
knownModel: true,
|
|
416
520
|
nativeStructuredOutput: false,
|
|
@@ -418,8 +522,12 @@ const languageModelDefinitions = {
|
|
|
418
522
|
reasoningEfforts: undefined,
|
|
419
523
|
sampling: true,
|
|
420
524
|
forcedToolUse: true,
|
|
525
|
+
computerUse: true,
|
|
421
526
|
toolSearch: false,
|
|
422
527
|
compaction: false,
|
|
528
|
+
contextManagement: true,
|
|
529
|
+
midConversationSystemMessages: true,
|
|
530
|
+
inferenceGeo: true,
|
|
423
531
|
effort: false,
|
|
424
532
|
speed: false,
|
|
425
533
|
taskBudget: 'unknown',
|
|
@@ -433,8 +541,12 @@ const languageModelDefinitions = {
|
|
|
433
541
|
reasoningEfforts: undefined,
|
|
434
542
|
sampling: true,
|
|
435
543
|
forcedToolUse: true,
|
|
544
|
+
computerUse: 'unknown',
|
|
436
545
|
toolSearch: 'unknown',
|
|
437
546
|
compaction: 'unknown',
|
|
547
|
+
contextManagement: 'unknown',
|
|
548
|
+
midConversationSystemMessages: 'unknown',
|
|
549
|
+
inferenceGeo: 'unknown',
|
|
438
550
|
effort: 'unknown',
|
|
439
551
|
speed: 'unknown',
|
|
440
552
|
taskBudget: 'unknown',
|
|
@@ -445,11 +557,15 @@ const languageModelDefinitions = {
|
|
|
445
557
|
knownModel: true,
|
|
446
558
|
nativeStructuredOutput: true,
|
|
447
559
|
thinking: { modes: ['budget'], canBeDisabled: 'always' },
|
|
448
|
-
reasoningEfforts:
|
|
449
|
-
sampling:
|
|
560
|
+
reasoningEfforts: [],
|
|
561
|
+
sampling: onlyWithoutThinking,
|
|
450
562
|
forcedToolUse: true,
|
|
563
|
+
computerUse: 'unknown',
|
|
451
564
|
toolSearch: 'unknown',
|
|
452
565
|
compaction: 'unknown',
|
|
566
|
+
contextManagement: 'unknown',
|
|
567
|
+
midConversationSystemMessages: 'unknown',
|
|
568
|
+
inferenceGeo: 'unknown',
|
|
453
569
|
effort: 'unknown',
|
|
454
570
|
speed: 'unknown',
|
|
455
571
|
taskBudget: 'unknown',
|
|
@@ -463,8 +579,12 @@ const languageModelDefinitions = {
|
|
|
463
579
|
reasoningEfforts: undefined,
|
|
464
580
|
sampling: true,
|
|
465
581
|
forcedToolUse: true,
|
|
582
|
+
computerUse: 'unknown',
|
|
466
583
|
toolSearch: 'unknown',
|
|
467
584
|
compaction: 'unknown',
|
|
585
|
+
contextManagement: 'unknown',
|
|
586
|
+
midConversationSystemMessages: 'unknown',
|
|
587
|
+
inferenceGeo: 'unknown',
|
|
468
588
|
effort: 'unknown',
|
|
469
589
|
speed: 'unknown',
|
|
470
590
|
taskBudget: 'unknown',
|
|
@@ -478,8 +598,12 @@ const languageModelDefinitions = {
|
|
|
478
598
|
reasoningEfforts: undefined,
|
|
479
599
|
sampling: true,
|
|
480
600
|
forcedToolUse: true,
|
|
601
|
+
computerUse: 'unknown',
|
|
481
602
|
toolSearch: 'unknown',
|
|
482
603
|
compaction: 'unknown',
|
|
604
|
+
contextManagement: 'unknown',
|
|
605
|
+
midConversationSystemMessages: 'unknown',
|
|
606
|
+
inferenceGeo: 'unknown',
|
|
483
607
|
effort: 'unknown',
|
|
484
608
|
speed: 'unknown',
|
|
485
609
|
taskBudget: 'unknown',
|
|
@@ -490,11 +614,15 @@ const languageModelDefinitions = {
|
|
|
490
614
|
knownModel: true,
|
|
491
615
|
nativeStructuredOutput: true,
|
|
492
616
|
thinking: { modes: ['budget'], canBeDisabled: 'always' },
|
|
493
|
-
reasoningEfforts:
|
|
494
|
-
sampling:
|
|
617
|
+
reasoningEfforts: ['low', 'medium', 'high'],
|
|
618
|
+
sampling: onlyWithoutThinking,
|
|
495
619
|
forcedToolUse: true,
|
|
620
|
+
computerUse: 'unknown',
|
|
496
621
|
toolSearch: 'unknown',
|
|
497
622
|
compaction: 'unknown',
|
|
623
|
+
contextManagement: 'unknown',
|
|
624
|
+
midConversationSystemMessages: 'unknown',
|
|
625
|
+
inferenceGeo: 'unknown',
|
|
498
626
|
effort: 'unknown',
|
|
499
627
|
speed: 'unknown',
|
|
500
628
|
taskBudget: 'unknown',
|
|
@@ -508,8 +636,12 @@ const languageModelDefinitions = {
|
|
|
508
636
|
reasoningEfforts: undefined,
|
|
509
637
|
sampling: true,
|
|
510
638
|
forcedToolUse: true,
|
|
639
|
+
computerUse: 'unknown',
|
|
511
640
|
toolSearch: 'unknown',
|
|
512
641
|
compaction: 'unknown',
|
|
642
|
+
contextManagement: 'unknown',
|
|
643
|
+
midConversationSystemMessages: 'unknown',
|
|
644
|
+
inferenceGeo: 'unknown',
|
|
513
645
|
effort: 'unknown',
|
|
514
646
|
speed: 'unknown',
|
|
515
647
|
taskBudget: 'unknown',
|
|
@@ -520,11 +652,15 @@ const languageModelDefinitions = {
|
|
|
520
652
|
knownModel: true,
|
|
521
653
|
nativeStructuredOutput: true,
|
|
522
654
|
thinking: { modes: ['budget'], canBeDisabled: 'always' },
|
|
523
|
-
reasoningEfforts:
|
|
524
|
-
sampling:
|
|
655
|
+
reasoningEfforts: [],
|
|
656
|
+
sampling: onlyWithoutThinking,
|
|
525
657
|
forcedToolUse: true,
|
|
658
|
+
computerUse: 'unknown',
|
|
526
659
|
toolSearch: 'unknown',
|
|
527
660
|
compaction: 'unknown',
|
|
661
|
+
contextManagement: 'unknown',
|
|
662
|
+
midConversationSystemMessages: 'unknown',
|
|
663
|
+
inferenceGeo: 'unknown',
|
|
528
664
|
effort: 'unknown',
|
|
529
665
|
speed: 'unknown',
|
|
530
666
|
taskBudget: 'unknown',
|
|
@@ -585,7 +721,7 @@ function createAnthropicLanguageModelEntry(
|
|
|
585
721
|
usage: documentedSupport,
|
|
586
722
|
streaming: documentedSupport,
|
|
587
723
|
forcedChoice: row.forcedToolUse,
|
|
588
|
-
computerUse:
|
|
724
|
+
computerUse: row.computerUse,
|
|
589
725
|
webSearch: documentedSupport,
|
|
590
726
|
toolSearch: row.toolSearch,
|
|
591
727
|
},
|
|
@@ -614,6 +750,17 @@ function createAnthropicLanguageModelEntry(
|
|
|
614
750
|
anthropicProviderOptions.language,
|
|
615
751
|
documentedSupport,
|
|
616
752
|
{
|
|
753
|
+
structuredOutputMode:
|
|
754
|
+
row.documented && !row.forcedToolUse
|
|
755
|
+
? {
|
|
756
|
+
condition:
|
|
757
|
+
'Use auto or outputFormat; jsonTool is converted to outputFormat.',
|
|
758
|
+
}
|
|
759
|
+
: documentedSupport,
|
|
760
|
+
compaction: row.compaction,
|
|
761
|
+
contextManagement: row.contextManagement,
|
|
762
|
+
midConversationSystemMessages: row.midConversationSystemMessages,
|
|
763
|
+
inferenceGeo: row.inferenceGeo,
|
|
617
764
|
includePings: true,
|
|
618
765
|
thinking: row.thinking !== false,
|
|
619
766
|
effort: row.effort,
|
|
@@ -659,10 +806,14 @@ const unknownClaudeModel: AnthropicLanguageModelRow = {
|
|
|
659
806
|
canBeDisabled: 'up-to-high-effort',
|
|
660
807
|
},
|
|
661
808
|
reasoningEfforts: ['low', 'medium', 'high', 'xhigh', 'max'],
|
|
662
|
-
sampling:
|
|
809
|
+
sampling: 'unknown',
|
|
663
810
|
forcedToolUse: true,
|
|
811
|
+
computerUse: 'unknown',
|
|
664
812
|
toolSearch: 'unknown',
|
|
665
813
|
compaction: 'unknown',
|
|
814
|
+
contextManagement: 'unknown',
|
|
815
|
+
midConversationSystemMessages: 'unknown',
|
|
816
|
+
inferenceGeo: 'unknown',
|
|
666
817
|
effort: 'unknown',
|
|
667
818
|
speed: 'unknown',
|
|
668
819
|
taskBudget: 'unknown',
|
|
@@ -678,8 +829,12 @@ const unknownLegacyModel: AnthropicLanguageModelRow = {
|
|
|
678
829
|
reasoningEfforts: undefined,
|
|
679
830
|
sampling: true,
|
|
680
831
|
forcedToolUse: true,
|
|
832
|
+
computerUse: 'unknown',
|
|
681
833
|
toolSearch: 'unknown',
|
|
682
834
|
compaction: 'unknown',
|
|
835
|
+
contextManagement: 'unknown',
|
|
836
|
+
midConversationSystemMessages: 'unknown',
|
|
837
|
+
inferenceGeo: 'unknown',
|
|
683
838
|
effort: 'unknown',
|
|
684
839
|
speed: 'unknown',
|
|
685
840
|
taskBudget: 'unknown',
|
|
@@ -793,8 +948,12 @@ function getUnlistedModelRow(modelId: string): AnthropicLanguageModelRow {
|
|
|
793
948
|
return {
|
|
794
949
|
...row,
|
|
795
950
|
documented: false,
|
|
951
|
+
computerUse: 'unknown',
|
|
796
952
|
toolSearch: 'unknown',
|
|
797
953
|
compaction: 'unknown',
|
|
954
|
+
contextManagement: 'unknown',
|
|
955
|
+
midConversationSystemMessages: 'unknown',
|
|
956
|
+
inferenceGeo: 'unknown',
|
|
798
957
|
effort: 'unknown',
|
|
799
958
|
speed: 'unknown',
|
|
800
959
|
taskBudget: 'unknown',
|
|
@@ -812,7 +971,10 @@ export function getAnthropicModelCapabilities(modelId: string) {
|
|
|
812
971
|
maxOutputTokens: requestConfig.maxOutputTokens,
|
|
813
972
|
supportsStructuredOutput: language.structuredOutput.native,
|
|
814
973
|
supportsAdaptiveThinking: language.reasoning.adaptive,
|
|
815
|
-
|
|
974
|
+
// Conditional support is enforced by the thinking-specific request checks.
|
|
975
|
+
rejectsSamplingParameters:
|
|
976
|
+
language.sampling.temperature === false ||
|
|
977
|
+
language.sampling.temperature === 'unknown',
|
|
816
978
|
supportsXhighEffort: language.reasoning.supportsXhighEffort,
|
|
817
979
|
rejectsThinkingDisabledAboveHighEffort:
|
|
818
980
|
!language.reasoning.canDisableAboveHighEffort,
|