@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.
@@ -2944,6 +2944,7 @@ var AnthropicMessagesLanguageModel = class {
2944
2944
  supportsAdaptiveThinking,
2945
2945
  isKnownModel
2946
2946
  } = getModelCapabilities(this.modelId);
2947
+ const isAnthropicModel = isKnownModel || this.modelId.startsWith("claude-");
2947
2948
  const supportsStructuredOutput = ((_a = this.config.supportsNativeStructuredOutput) != null ? _a : true) && modelSupportsStructuredOutput;
2948
2949
  const supportsStrictTools = ((_b = this.config.supportsStrictTools) != null ? _b : true) && modelSupportsStructuredOutput;
2949
2950
  const structureOutputMode = (_c = anthropicOptions == null ? void 0 : anthropicOptions.structuredOutputMode) != null ? _c : "auto";
@@ -3165,7 +3166,7 @@ var AnthropicMessagesLanguageModel = class {
3165
3166
  }
3166
3167
  baseArgs.max_tokens = maxTokens + (thinkingBudget != null ? thinkingBudget : 0);
3167
3168
  } else {
3168
- if (topP != null && temperature != null) {
3169
+ if (isAnthropicModel && topP != null && temperature != null) {
3169
3170
  warnings.push({
3170
3171
  type: "unsupported",
3171
3172
  feature: "topP",