@ai-sdk/anthropic 3.0.64 → 3.0.65

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.
@@ -2970,6 +2970,7 @@ var AnthropicMessagesLanguageModel = class {
2970
2970
  supportsStructuredOutput: modelSupportsStructuredOutput,
2971
2971
  isKnownModel
2972
2972
  } = getModelCapabilities(this.modelId);
2973
+ const isAnthropicModel = isKnownModel || this.modelId.startsWith("claude-");
2973
2974
  const supportsStructuredOutput = ((_a = this.config.supportsNativeStructuredOutput) != null ? _a : true) && modelSupportsStructuredOutput;
2974
2975
  const supportsStrictTools = ((_b = this.config.supportsStrictTools) != null ? _b : true) && modelSupportsStructuredOutput;
2975
2976
  const structureOutputMode = (_c = anthropicOptions == null ? void 0 : anthropicOptions.structuredOutputMode) != null ? _c : "auto";
@@ -3177,7 +3178,7 @@ var AnthropicMessagesLanguageModel = class {
3177
3178
  }
3178
3179
  baseArgs.max_tokens = maxTokens + (thinkingBudget != null ? thinkingBudget : 0);
3179
3180
  } else {
3180
- if (topP != null && temperature != null) {
3181
+ if (isAnthropicModel && topP != null && temperature != null) {
3181
3182
  warnings.push({
3182
3183
  type: "unsupported",
3183
3184
  feature: "topP",