@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.
package/dist/index.mjs CHANGED
@@ -11,7 +11,7 @@ import {
11
11
  } from "@ai-sdk/provider-utils";
12
12
 
13
13
  // src/version.ts
14
- var VERSION = true ? "3.0.5" : "0.0.0-test";
14
+ var VERSION = true ? "3.0.6" : "0.0.0-test";
15
15
 
16
16
  // src/anthropic-messages-language-model.ts
17
17
  import {
@@ -2607,6 +2607,15 @@ var AnthropicMessagesLanguageModel = class {
2607
2607
  });
2608
2608
  }
2609
2609
  baseArgs.max_tokens = maxTokens + (thinkingBudget != null ? thinkingBudget : 0);
2610
+ } else {
2611
+ if (topP != null && temperature != null) {
2612
+ warnings.push({
2613
+ type: "unsupported",
2614
+ feature: "topP",
2615
+ details: `topP is not supported when temperature is set. topP is ignored.`
2616
+ });
2617
+ baseArgs.top_p = void 0;
2618
+ }
2610
2619
  }
2611
2620
  if (isKnownModel && baseArgs.max_tokens > maxOutputTokensForModel) {
2612
2621
  if (maxOutputTokens != null) {