@ai-sdk/anthropic 4.0.0-beta.13 → 4.0.0-beta.15

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.
@@ -2975,6 +2975,7 @@ var AnthropicMessagesLanguageModel = class {
2975
2975
  supportsAdaptiveThinking,
2976
2976
  isKnownModel
2977
2977
  } = getModelCapabilities(this.modelId);
2978
+ const isAnthropicModel = isKnownModel || this.modelId.startsWith("claude-");
2978
2979
  const supportsStructuredOutput = ((_a = this.config.supportsNativeStructuredOutput) != null ? _a : true) && modelSupportsStructuredOutput;
2979
2980
  const supportsStrictTools = ((_b = this.config.supportsStrictTools) != null ? _b : true) && modelSupportsStructuredOutput;
2980
2981
  const structureOutputMode = (_c = anthropicOptions == null ? void 0 : anthropicOptions.structuredOutputMode) != null ? _c : "auto";
@@ -3196,7 +3197,7 @@ var AnthropicMessagesLanguageModel = class {
3196
3197
  }
3197
3198
  baseArgs.max_tokens = maxTokens + (thinkingBudget != null ? thinkingBudget : 0);
3198
3199
  } else {
3199
- if (topP != null && temperature != null) {
3200
+ if (isAnthropicModel && topP != null && temperature != null) {
3200
3201
  warnings.push({
3201
3202
  type: "unsupported",
3202
3203
  feature: "topP",