n8n - 💡(How to fix) Fix Anthropic Chat Model node blocks Claude Opus 4.7 (no adaptive thinking support) [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
n8n-io/n8n#28635Fetched 2026-04-18 05:56:56
View on GitHub
Comments
1
Participants
2
Timeline
4
Reactions
0
Author
Timeline (top)
commented ×1labeled ×1mentioned ×1subscribed ×1

Error Message

400 {"type":"error","error":{"type":"invalid_request_error",

  • error: all
RAW_BUFFERClick to expand / collapse

Bug Description

The @n8n/n8n-nodes-langchain.lmChatAnthropic node (v1.3) only emits the legacy manual thinking format: thinking: { type: "enabled", budget_tokens: N }. Anthropic has removed that format on Claude Opus 4.7 — the API returns a 400 the moment thinking is on. This blocks Opus 4.7 adoption entirely whenever extended thinking is desired, and on Opus 4.6 / Sonnet 4.6 the same format is deprecated and scheduled for removal.

To Reproduce

  1. Create a new workflow with an AI Agent node and an attached Anthropic Chat Model.
  2. In the chat model config, pick Claude Opus 4.7 and enable Thinking with any budget (e.g. 17000).
  3. Run the workflow.

Anthropic rejects the request:

400 {"type":"error","error":{"type":"invalid_request_error", "message":""thinking.type.enabled" is not supported for this model. Use "thinking.type.adaptive" and "output_config.effort" to control thinking behavior."}}

The node still passes { type: "enabled", budget_tokens: N } regardless of the selected model. Opus 4.6 and Sonnet 4.6 currently accept it (deprecated), so the failure surfaces silently the moment anyone bumps to Opus 4.7.

Expected behavior

The Anthropic Chat Model node should support adaptive thinking as specified in Anthropic's API:

  • thinking: { type: "adaptive" }
  • output_config: { effort: "low" | "medium" | "high" | "max" } (plus xhigh on Opus 4.7)

Reasonable UI shape: either replace or supplement the current Thinking / Thinking Budget fields with a Thinking Mode dropdown (Disabled / Adaptive / Manual (deprecated)) and an Effort dropdown that appears when Adaptive is selected. Keep backward compatibility for existing workflows on older models.

Debug Info

Debug info

core

  • n8nVersion: 2.16.0
  • platform: docker (self-hosted)
  • nodeJsVersion: 24.14.1
  • nodeEnv: production
  • database: postgres
  • executionMode: regular
  • concurrency: -1
  • license: enterprise (production)
  • consumerId: b732ee02-7882-42f0-a190-84533f4af2f3

storage

  • success: all
  • error: all
  • progress: false
  • manual: true
  • binaryMode: memory

pruning

  • enabled: true
  • maxAge: 168 hours
  • maxCount: 10000 executions

client

  • userAgent: mozilla/5.0 (macintosh; intel mac os x 10_15_7) applewebkit/537.36 (khtml, like gecko) chrome/146.0.0.0 safari/537.36
  • isTouchDevice: false

Generated at: 2026-04-17T19:28:23.043Z

Operating System

Alpine Linux 3.22

n8n Version

n8nio/n8n:2.16.0

Node.js Version

24.14.1

Database

PostgreSQL

Execution mode

main (default)

Hosting

n8n cloud

extent analysis

TL;DR

The @n8n/n8n-nodes-langchain.lmChatAnthropic node needs to be updated to support the new thinking format for Anthropic's Claude Opus 4.7 model.

Guidance

  • The current node version (v1.3) only emits the legacy manual thinking format, which is no longer supported by Anthropic's API for Opus 4.7.
  • To fix the issue, the node needs to be updated to support the new thinking format: thinking: { type: "adaptive" } and output_config: { effort: "low" | "medium" | "high" | "max" }.
  • The UI should be updated to reflect the new thinking mode and effort options, while maintaining backward compatibility for existing workflows on older models.
  • The Thinking and Thinking Budget fields should be replaced or supplemented with a Thinking Mode dropdown and an Effort dropdown that appears when Adaptive is selected.

Example

No code snippet is provided as the issue is related to the node's configuration and UI, rather than a specific code implementation.

Notes

The issue is specific to the @n8n/n8n-nodes-langchain.lmChatAnthropic node and Anthropic's Claude Opus 4.7 model. The solution may not apply to other nodes or models.

Recommendation

Apply a workaround by updating the node to support the new thinking format, as the current version is not compatible with Opus 4.7. This will require changes to the node's configuration and UI to reflect the new thinking mode and effort options.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

FAQ

Expected behavior

The Anthropic Chat Model node should support adaptive thinking as specified in Anthropic's API:

  • thinking: { type: "adaptive" }
  • output_config: { effort: "low" | "medium" | "high" | "max" } (plus xhigh on Opus 4.7)

Reasonable UI shape: either replace or supplement the current Thinking / Thinking Budget fields with a Thinking Mode dropdown (Disabled / Adaptive / Manual (deprecated)) and an Effort dropdown that appears when Adaptive is selected. Keep backward compatibility for existing workflows on older models.

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING