@ai-sdk/anthropic 2.0.113 → 2.0.114

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.
@@ -739,7 +739,7 @@ var anthropicProviderOptions = lazySchema3(() => {
739
739
  * Requires a minimum budget of 1,024 tokens and counts towards the `max_tokens` limit.
740
740
  *
741
741
  * Models that always use adaptive thinking (e.g. `claude-opus-5-5`,
742
- * `claude-fable-5-1`) reject `enabled` and `disabled`. For those models the
742
+ * `claude-fable-5-1`, `claude-fable-5-2`) reject `enabled` and `disabled`. For those models the
743
743
  * provider drops the unsupported setting, emits a warning, and sends an
744
744
  * adaptive thinking request. Use `effort` to control how much they think.
745
745
  *
@@ -2967,7 +2967,7 @@ var AnthropicMessagesLanguageModel = class {
2967
2967
  }
2968
2968
  const isAnthropicModel = isKnownModel || this.modelId.includes("claude-");
2969
2969
  const supportsResponseSchema = (responseFormat == null ? void 0 : responseFormat.type) !== "json" || responseFormat.schema == null || supportsNativeStructuredOutputSchema(responseFormat.schema);
2970
- const structureOutputMode = (_a = anthropicOptions == null ? void 0 : anthropicOptions.structuredOutputMode) != null ? _a : this.modelId.includes("claude-fable-5-1") || this.modelId.includes("claude-opus-5-5") || this.modelId.includes("claude-sonnet-5-5") ? "auto" : "jsonTool";
2970
+ const structureOutputMode = (_a = anthropicOptions == null ? void 0 : anthropicOptions.structuredOutputMode) != null ? _a : this.modelId.includes("claude-fable-5-1") || this.modelId.includes("claude-fable-5-2") || this.modelId.includes("claude-opus-5-5") || this.modelId.includes("claude-sonnet-5-5") ? "auto" : "jsonTool";
2971
2971
  let useStructuredOutput = structureOutputMode === "outputFormat" || structureOutputMode === "auto" && supportsStructuredOutput && supportsResponseSchema;
2972
2972
  if (!useStructuredOutput && rejectsForcedToolUse && supportsStructuredOutput && (responseFormat == null ? void 0 : responseFormat.type) === "json" && responseFormat.schema != null && supportsResponseSchema) {
2973
2973
  warnings.push({
@@ -4524,7 +4524,7 @@ function getModelCapabilities(modelId) {
4524
4524
  supportsBetweenToolsThinking: false,
4525
4525
  isKnownModel: true
4526
4526
  };
4527
- } else if (modelId.includes("claude-fable-5-1")) {
4527
+ } else if (modelId.includes("claude-fable-5-1") || modelId.includes("claude-fable-5-2")) {
4528
4528
  return {
4529
4529
  maxOutputTokens: 128e3,
4530
4530
  supportsStructuredOutput: true,