@ai-sdk/anthropic 3.0.43 → 3.0.44

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/index.mjs CHANGED
@@ -12,7 +12,7 @@ import {
12
12
  } from "@ai-sdk/provider-utils";
13
13
 
14
14
  // src/version.ts
15
- var VERSION = true ? "3.0.43" : "0.0.0-test";
15
+ var VERSION = true ? "3.0.44" : "0.0.0-test";
16
16
 
17
17
  // src/anthropic-messages-language-model.ts
18
18
  import {
@@ -857,7 +857,7 @@ var anthropicLanguageModelOptions = z3.object({
857
857
  * Enable fast mode for faster inference (2.5x faster output token speeds).
858
858
  * Only supported with claude-opus-4-6.
859
859
  */
860
- speed: z3.literal("fast").optional(),
860
+ speed: z3.enum(["fast", "standard"]).optional(),
861
861
  contextManagement: z3.object({
862
862
  edits: z3.array(
863
863
  z3.discriminatedUnion("type", [
@@ -2846,7 +2846,7 @@ var AnthropicMessagesLanguageModel = class {
2846
2846
  if (anthropicOptions == null ? void 0 : anthropicOptions.effort) {
2847
2847
  betas.add("effort-2025-11-24");
2848
2848
  }
2849
- if (anthropicOptions == null ? void 0 : anthropicOptions.speed) {
2849
+ if ((anthropicOptions == null ? void 0 : anthropicOptions.speed) === "fast") {
2850
2850
  betas.add("fast-mode-2026-02-01");
2851
2851
  }
2852
2852
  if (stream && ((_f = anthropicOptions == null ? void 0 : anthropicOptions.toolStreaming) != null ? _f : true)) {