@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.
@@ -841,7 +841,7 @@ var anthropicLanguageModelOptions = z3.object({
841
841
  * Enable fast mode for faster inference (2.5x faster output token speeds).
842
842
  * Only supported with claude-opus-4-6.
843
843
  */
844
- speed: z3.literal("fast").optional(),
844
+ speed: z3.enum(["fast", "standard"]).optional(),
845
845
  contextManagement: z3.object({
846
846
  edits: z3.array(
847
847
  z3.discriminatedUnion("type", [
@@ -2830,7 +2830,7 @@ var AnthropicMessagesLanguageModel = class {
2830
2830
  if (anthropicOptions == null ? void 0 : anthropicOptions.effort) {
2831
2831
  betas.add("effort-2025-11-24");
2832
2832
  }
2833
- if (anthropicOptions == null ? void 0 : anthropicOptions.speed) {
2833
+ if ((anthropicOptions == null ? void 0 : anthropicOptions.speed) === "fast") {
2834
2834
  betas.add("fast-mode-2026-02-01");
2835
2835
  }
2836
2836
  if (stream && ((_f = anthropicOptions == null ? void 0 : anthropicOptions.toolStreaming) != null ? _f : true)) {