@ai-sdk/anthropic 3.0.5 → 3.0.6

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.
@@ -2592,6 +2592,15 @@ var AnthropicMessagesLanguageModel = class {
2592
2592
  });
2593
2593
  }
2594
2594
  baseArgs.max_tokens = maxTokens + (thinkingBudget != null ? thinkingBudget : 0);
2595
+ } else {
2596
+ if (topP != null && temperature != null) {
2597
+ warnings.push({
2598
+ type: "unsupported",
2599
+ feature: "topP",
2600
+ details: `topP is not supported when temperature is set. topP is ignored.`
2601
+ });
2602
+ baseArgs.top_p = void 0;
2603
+ }
2595
2604
  }
2596
2605
  if (isKnownModel && baseArgs.max_tokens > maxOutputTokensForModel) {
2597
2606
  if (maxOutputTokens != null) {