@ai-sdk/anthropic 4.0.7 → 4.0.8

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.
@@ -3697,6 +3697,7 @@ var AnthropicLanguageModel = class _AnthropicLanguageModel {
3697
3697
  }
3698
3698
  const thinkingType = (_f = anthropicOptions == null ? void 0 : anthropicOptions.thinking) == null ? void 0 : _f.type;
3699
3699
  const isThinking = thinkingType === "enabled" || thinkingType === "adaptive";
3700
+ const sendThinking = isThinking || thinkingType === "disabled";
3700
3701
  let thinkingBudget = thinkingType === "enabled" ? (_g = anthropicOptions == null ? void 0 : anthropicOptions.thinking) == null ? void 0 : _g.budgetTokens : void 0;
3701
3702
  const thinkingDisplay = thinkingType === "adaptive" ? (_h = anthropicOptions == null ? void 0 : anthropicOptions.thinking) == null ? void 0 : _h.display : void 0;
3702
3703
  const maxTokens = maxOutputTokens != null ? maxOutputTokens : maxOutputTokensForModel;
@@ -3710,7 +3711,7 @@ var AnthropicLanguageModel = class _AnthropicLanguageModel {
3710
3711
  top_p: topP,
3711
3712
  stop_sequences: stopSequences,
3712
3713
  // provider specific settings:
3713
- ...isThinking && {
3714
+ ...sendThinking && {
3714
3715
  thinking: {
3715
3716
  type: thinkingType,
3716
3717
  ...thinkingBudget != null && { budget_tokens: thinkingBudget },