@ai-sdk/anthropic 3.0.0-beta.54 → 3.0.0-beta.56
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 +14 -0
- package/dist/index.js +15 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +15 -1
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.js +14 -0
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/index.mjs +14 -0
- package/dist/internal/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
} from "@ai-sdk/provider-utils";
|
|
12
12
|
|
|
13
13
|
// src/version.ts
|
|
14
|
-
var VERSION = true ? "3.0.0-beta.
|
|
14
|
+
var VERSION = true ? "3.0.0-beta.56" : "0.0.0-test";
|
|
15
15
|
|
|
16
16
|
// src/anthropic-messages-language-model.ts
|
|
17
17
|
import {
|
|
@@ -581,7 +581,18 @@ var anthropicFilePartProviderOptions = z3.object({
|
|
|
581
581
|
context: z3.string().optional()
|
|
582
582
|
});
|
|
583
583
|
var anthropicProviderOptions = z3.object({
|
|
584
|
+
/**
|
|
585
|
+
* Whether to send reasoning to the model.
|
|
586
|
+
*
|
|
587
|
+
* This allows you to deactivate reasoning inputs for models that do not support them.
|
|
588
|
+
*/
|
|
584
589
|
sendReasoning: z3.boolean().optional(),
|
|
590
|
+
/**
|
|
591
|
+
* Configuration for enabling Claude's extended thinking.
|
|
592
|
+
*
|
|
593
|
+
* When enabled, responses include thinking content blocks showing Claude's thinking process before the final answer.
|
|
594
|
+
* Requires a minimum budget of 1,024 tokens and counts towards the `max_tokens` limit.
|
|
595
|
+
*/
|
|
585
596
|
thinking: z3.object({
|
|
586
597
|
type: z3.union([z3.literal("enabled"), z3.literal("disabled")]),
|
|
587
598
|
budgetTokens: z3.number().optional()
|
|
@@ -599,6 +610,9 @@ var anthropicProviderOptions = z3.object({
|
|
|
599
610
|
type: z3.literal("ephemeral"),
|
|
600
611
|
ttl: z3.union([z3.literal("5m"), z3.literal("1h")]).optional()
|
|
601
612
|
}).optional(),
|
|
613
|
+
/**
|
|
614
|
+
* MCP servers to be utilized in this request.
|
|
615
|
+
*/
|
|
602
616
|
mcpServers: z3.array(
|
|
603
617
|
z3.object({
|
|
604
618
|
type: z3.literal("url"),
|