@ai-sdk/anthropic 2.0.63 → 2.0.64

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.
@@ -676,7 +676,7 @@ var anthropicProviderOptions = z3.object({
676
676
  * Enable fast mode for faster inference (2.5x faster output token speeds).
677
677
  * Only supported with claude-opus-4-6.
678
678
  */
679
- speed: z3.literal("fast").optional(),
679
+ speed: z3.enum(["fast", "standard"]).optional(),
680
680
  /**
681
681
  * Context management configuration for automatic context window management.
682
682
  * Enables features like automatic compaction and clearing of tool uses/thinking blocks.
@@ -2178,7 +2178,7 @@ var AnthropicMessagesLanguageModel = class {
2178
2178
  if (anthropicOptions == null ? void 0 : anthropicOptions.effort) {
2179
2179
  betas.add("effort-2025-11-24");
2180
2180
  }
2181
- if (anthropicOptions == null ? void 0 : anthropicOptions.speed) {
2181
+ if ((anthropicOptions == null ? void 0 : anthropicOptions.speed) === "fast") {
2182
2182
  betas.add("fast-mode-2026-02-01");
2183
2183
  }
2184
2184
  if (useStructuredOutput) {