@ai-sdk/anthropic 3.0.4 → 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.
@@ -2576,6 +2576,15 @@ var AnthropicMessagesLanguageModel = class {
2576
2576
  });
2577
2577
  }
2578
2578
  baseArgs.max_tokens = maxTokens + (thinkingBudget != null ? thinkingBudget : 0);
2579
+ } else {
2580
+ if (topP != null && temperature != null) {
2581
+ warnings.push({
2582
+ type: "unsupported",
2583
+ feature: "topP",
2584
+ details: `topP is not supported when temperature is set. topP is ignored.`
2585
+ });
2586
+ baseArgs.top_p = void 0;
2587
+ }
2579
2588
  }
2580
2589
  if (isKnownModel && baseArgs.max_tokens > maxOutputTokensForModel) {
2581
2590
  if (maxOutputTokens != null) {