@ai-sdk/anthropic 3.0.64 → 3.0.66

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.
@@ -2941,6 +2941,7 @@ var AnthropicMessagesLanguageModel = class {
2941
2941
  supportsStructuredOutput: modelSupportsStructuredOutput,
2942
2942
  isKnownModel
2943
2943
  } = getModelCapabilities(this.modelId);
2944
+ const isAnthropicModel = isKnownModel || this.modelId.startsWith("claude-");
2944
2945
  const supportsStructuredOutput = ((_a = this.config.supportsNativeStructuredOutput) != null ? _a : true) && modelSupportsStructuredOutput;
2945
2946
  const supportsStrictTools = ((_b = this.config.supportsStrictTools) != null ? _b : true) && modelSupportsStructuredOutput;
2946
2947
  const structureOutputMode = (_c = anthropicOptions == null ? void 0 : anthropicOptions.structuredOutputMode) != null ? _c : "auto";
@@ -3148,7 +3149,7 @@ var AnthropicMessagesLanguageModel = class {
3148
3149
  }
3149
3150
  baseArgs.max_tokens = maxTokens + (thinkingBudget != null ? thinkingBudget : 0);
3150
3151
  } else {
3151
- if (topP != null && temperature != null) {
3152
+ if (isAnthropicModel && topP != null && temperature != null) {
3152
3153
  warnings.push({
3153
3154
  type: "unsupported",
3154
3155
  feature: "topP",