@ai-sdk/anthropic 3.0.37 → 3.0.39

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.
@@ -818,6 +818,11 @@ var anthropicProviderOptions = import_v43.z.object({
818
818
  * @default 'high'
819
819
  */
820
820
  effort: import_v43.z.enum(["low", "medium", "high", "max"]).optional(),
821
+ /**
822
+ * Enable fast mode for faster inference (2.5x faster output token speeds).
823
+ * Only supported with claude-opus-4-6.
824
+ */
825
+ speed: import_v43.z.literal("fast").optional(),
821
826
  contextManagement: import_v43.z.object({
822
827
  edits: import_v43.z.array(
823
828
  import_v43.z.discriminatedUnion("type", [
@@ -2563,6 +2568,9 @@ var AnthropicMessagesLanguageModel = class {
2563
2568
  ...(anthropicOptions == null ? void 0 : anthropicOptions.effort) && {
2564
2569
  output_config: { effort: anthropicOptions.effort }
2565
2570
  },
2571
+ ...(anthropicOptions == null ? void 0 : anthropicOptions.speed) && {
2572
+ speed: anthropicOptions.speed
2573
+ },
2566
2574
  // structured output:
2567
2575
  ...useStructuredOutput && (responseFormat == null ? void 0 : responseFormat.type) === "json" && responseFormat.schema != null && {
2568
2576
  output_format: {
@@ -2721,6 +2729,9 @@ var AnthropicMessagesLanguageModel = class {
2721
2729
  if (anthropicOptions == null ? void 0 : anthropicOptions.effort) {
2722
2730
  betas.add("effort-2025-11-24");
2723
2731
  }
2732
+ if (anthropicOptions == null ? void 0 : anthropicOptions.speed) {
2733
+ betas.add("fast-mode-2026-02-01");
2734
+ }
2724
2735
  if (stream && ((_f = anthropicOptions == null ? void 0 : anthropicOptions.toolStreaming) != null ? _f : true)) {
2725
2736
  betas.add("fine-grained-tool-streaming-2025-05-14");
2726
2737
  }