@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.
@@ -854,7 +854,7 @@ var anthropicLanguageModelOptions = import_v43.z.object({
854
854
  * Enable fast mode for faster inference (2.5x faster output token speeds).
855
855
  * Only supported with claude-opus-4-6.
856
856
  */
857
- speed: import_v43.z.literal("fast").optional(),
857
+ speed: import_v43.z.enum(["fast", "standard"]).optional(),
858
858
  contextManagement: import_v43.z.object({
859
859
  edits: import_v43.z.array(
860
860
  import_v43.z.discriminatedUnion("type", [
@@ -2814,7 +2814,7 @@ var AnthropicMessagesLanguageModel = class {
2814
2814
  if (anthropicOptions == null ? void 0 : anthropicOptions.effort) {
2815
2815
  betas.add("effort-2025-11-24");
2816
2816
  }
2817
- if (anthropicOptions == null ? void 0 : anthropicOptions.speed) {
2817
+ if ((anthropicOptions == null ? void 0 : anthropicOptions.speed) === "fast") {
2818
2818
  betas.add("fast-mode-2026-02-01");
2819
2819
  }
2820
2820
  if (stream && ((_f = anthropicOptions == null ? void 0 : anthropicOptions.toolStreaming) != null ? _f : true)) {