@ai-sdk/anthropic 3.0.92 → 3.0.93

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
@@ -12,7 +12,7 @@ import {
12
12
  } from "@ai-sdk/provider-utils";
13
13
 
14
14
  // src/version.ts
15
- var VERSION = true ? "3.0.92" : "0.0.0-test";
15
+ var VERSION = true ? "3.0.93" : "0.0.0-test";
16
16
 
17
17
  // src/anthropic-messages-language-model.ts
18
18
  import {
@@ -3514,6 +3514,7 @@ var AnthropicMessagesLanguageModel = class {
3514
3514
  });
3515
3515
  const thinkingType = (_e = anthropicOptions == null ? void 0 : anthropicOptions.thinking) == null ? void 0 : _e.type;
3516
3516
  const isThinking = thinkingType === "enabled" || thinkingType === "adaptive";
3517
+ const sendThinking = isThinking || thinkingType === "disabled";
3517
3518
  let thinkingBudget = thinkingType === "enabled" ? (_f = anthropicOptions == null ? void 0 : anthropicOptions.thinking) == null ? void 0 : _f.budgetTokens : void 0;
3518
3519
  const thinkingDisplay = thinkingType === "adaptive" ? (_g = anthropicOptions == null ? void 0 : anthropicOptions.thinking) == null ? void 0 : _g.display : void 0;
3519
3520
  const maxTokens = maxOutputTokens != null ? maxOutputTokens : maxOutputTokensForModel;
@@ -3527,7 +3528,7 @@ var AnthropicMessagesLanguageModel = class {
3527
3528
  top_p: topP,
3528
3529
  stop_sequences: stopSequences,
3529
3530
  // provider specific settings:
3530
- ...isThinking && {
3531
+ ...sendThinking && {
3531
3532
  thinking: {
3532
3533
  type: thinkingType,
3533
3534
  ...thinkingBudget != null && { budget_tokens: thinkingBudget },