@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/CHANGELOG.md +14 -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 +1 -1
package/dist/internal/index.js
CHANGED
|
@@ -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) {
|