@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.
- package/CHANGELOG.md +21 -0
- package/dist/index.js +10 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +10 -1
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.js +9 -0
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/index.mjs +9 -0
- package/dist/internal/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/internal/index.mjs
CHANGED
|
@@ -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) {
|