@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.
@@ -2226,9 +2226,15 @@ var AnthropicMessagesLanguageModel = class {
2226
2226
  };
2227
2227
  if (isThinking) {
2228
2228
  if (thinkingType === "enabled" && thinkingBudget == null) {
2229
- throw new import_provider3.UnsupportedFunctionalityError({
2230
- functionality: "thinking requires a budget"
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;