@tanstack/ai-anthropic 0.7.3 → 0.7.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/esm/adapters/summarize.js +5 -4
- package/dist/esm/adapters/summarize.js.map +1 -1
- package/dist/esm/adapters/text.js +121 -35
- package/dist/esm/adapters/text.js.map +1 -1
- package/dist/esm/model-meta.d.ts +23 -1
- package/dist/esm/model-meta.js +5 -1
- package/dist/esm/model-meta.js.map +1 -1
- package/package.json +3 -3
- package/src/adapters/summarize.ts +8 -4
- package/src/adapters/text.ts +142 -36
- package/src/model-meta.ts +41 -0
package/src/model-meta.ts
CHANGED
|
@@ -453,6 +453,36 @@ const CLAUDE_OPUS_4_6_FAST = {
|
|
|
453
453
|
AnthropicSamplingOptions
|
|
454
454
|
>
|
|
455
455
|
|
|
456
|
+
const CLAUDE_OPUS_4_7 = {
|
|
457
|
+
name: 'claude-opus-4.7',
|
|
458
|
+
id: 'claude-opus-4.7',
|
|
459
|
+
context_window: 1_000_000,
|
|
460
|
+
max_output_tokens: 128_000,
|
|
461
|
+
supports: {
|
|
462
|
+
input: ['text', 'image'],
|
|
463
|
+
extended_thinking: true,
|
|
464
|
+
priority_tier: true,
|
|
465
|
+
},
|
|
466
|
+
pricing: {
|
|
467
|
+
input: {
|
|
468
|
+
normal: 5,
|
|
469
|
+
cached: 0.5,
|
|
470
|
+
},
|
|
471
|
+
output: {
|
|
472
|
+
normal: 25,
|
|
473
|
+
},
|
|
474
|
+
},
|
|
475
|
+
} as const satisfies ModelMeta<
|
|
476
|
+
AnthropicContainerOptions &
|
|
477
|
+
AnthropicContextManagementOptions &
|
|
478
|
+
AnthropicMCPOptions &
|
|
479
|
+
AnthropicServiceTierOptions &
|
|
480
|
+
AnthropicStopSequencesOptions &
|
|
481
|
+
AnthropicThinkingOptions &
|
|
482
|
+
AnthropicToolChoiceOptions &
|
|
483
|
+
AnthropicSamplingOptions
|
|
484
|
+
>
|
|
485
|
+
|
|
456
486
|
export const ANTHROPIC_MODELS = [
|
|
457
487
|
CLAUDE_OPUS_4_6.id,
|
|
458
488
|
CLAUDE_OPUS_4_5.id,
|
|
@@ -467,6 +497,8 @@ export const ANTHROPIC_MODELS = [
|
|
|
467
497
|
CLAUDE_HAIKU_3.id,
|
|
468
498
|
|
|
469
499
|
CLAUDE_OPUS_4_6_FAST.id,
|
|
500
|
+
|
|
501
|
+
CLAUDE_OPUS_4_7.id,
|
|
470
502
|
] as const
|
|
471
503
|
|
|
472
504
|
// const ANTHROPIC_IMAGE_MODELS = [] as const
|
|
@@ -577,6 +609,14 @@ export type AnthropicChatModelProviderOptionsByName = {
|
|
|
577
609
|
AnthropicThinkingOptions &
|
|
578
610
|
AnthropicToolChoiceOptions &
|
|
579
611
|
AnthropicSamplingOptions
|
|
612
|
+
[CLAUDE_OPUS_4_7.id]: AnthropicContainerOptions &
|
|
613
|
+
AnthropicContextManagementOptions &
|
|
614
|
+
AnthropicMCPOptions &
|
|
615
|
+
AnthropicServiceTierOptions &
|
|
616
|
+
AnthropicStopSequencesOptions &
|
|
617
|
+
AnthropicThinkingOptions &
|
|
618
|
+
AnthropicToolChoiceOptions &
|
|
619
|
+
AnthropicSamplingOptions
|
|
580
620
|
}
|
|
581
621
|
|
|
582
622
|
/**
|
|
@@ -603,4 +643,5 @@ export type AnthropicModelInputModalitiesByName = {
|
|
|
603
643
|
[CLAUDE_HAIKU_3_5.id]: typeof CLAUDE_HAIKU_3_5.supports.input
|
|
604
644
|
[CLAUDE_HAIKU_3.id]: typeof CLAUDE_HAIKU_3.supports.input
|
|
605
645
|
[CLAUDE_OPUS_4_6_FAST.id]: typeof CLAUDE_OPUS_4_6_FAST.supports.input
|
|
646
|
+
[CLAUDE_OPUS_4_7.id]: typeof CLAUDE_OPUS_4_7.supports.input
|
|
606
647
|
}
|