@ai-sdk/anthropic 2.0.76 → 2.0.77
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 +7 -0
- package/README.md +2 -0
- package/dist/index.js +9 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +10 -5
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.js +8 -2
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/index.mjs +9 -4
- package/dist/internal/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/internal/index.js
CHANGED
|
@@ -2226,9 +2226,15 @@ var AnthropicMessagesLanguageModel = class {
|
|
|
2226
2226
|
};
|
|
2227
2227
|
if (isThinking) {
|
|
2228
2228
|
if (thinkingType === "enabled" && thinkingBudget == null) {
|
|
2229
|
-
|
|
2230
|
-
|
|
2229
|
+
warnings.push({
|
|
2230
|
+
type: "other",
|
|
2231
|
+
message: "thinking budget is required when thinking is enabled. using default budget of 1024 tokens."
|
|
2231
2232
|
});
|
|
2233
|
+
baseArgs.thinking = {
|
|
2234
|
+
type: "enabled",
|
|
2235
|
+
budget_tokens: 1024
|
|
2236
|
+
};
|
|
2237
|
+
thinkingBudget = 1024;
|
|
2232
2238
|
}
|
|
2233
2239
|
if (baseArgs.temperature != null) {
|
|
2234
2240
|
baseArgs.temperature = void 0;
|