-
Notifications
You must be signed in to change notification settings - Fork 1.9k
feat(llm): virtualize provider interface behind a normalized Adapter #1683
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Changes from all commits
d6d75ad
ec1a7df
a2e18f0
b820391
6ae4301
1d8ebcc
4f19762
4faf8b3
9396a33
1cb1465
7203958
fba74bb
d0cd813
5be6e36
afce1ff
1d35fac
b556080
8314681
6196feb
8c5dacb
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | |||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -332,6 +332,12 @@ | ||||||||||||||||||||||||||||||||||||||||||||||||||
| "title": "Tokens", | |||||||||||||||||||||||||||||||||||||||||||||||||||
| "description": "Total Tokens" | |||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | |||||||||||||||||||||||||||||||||||||||||||||||||||
| "extendedThinking": { | |||||||||||||||||||||||||||||||||||||||||||||||||||
| "type": "boolean", | |||||||||||||||||||||||||||||||||||||||||||||||||||
| "title": "Extended thinking", | |||||||||||||||||||||||||||||||||||||||||||||||||||
| "default": false, | |||||||||||||||||||||||||||||||||||||||||||||||||||
| "description": "Enable Anthropic extended thinking (reasoning) for this node. Off by default. Applies to reasoning-capable models on the interactive chat path." | |||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | |||||||||||||||||||||||||||||||||||||||||||||||||||
| "anthropic.custom": { | |||||||||||||||||||||||||||||||||||||||||||||||||||
| "object": "custom", | |||||||||||||||||||||||||||||||||||||||||||||||||||
| "properties": [ | |||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
@@ -345,34 +351,39 @@ | ||||||||||||||||||||||||||||||||||||||||||||||||||
| "object": "claude-sonnet-4-6", | |||||||||||||||||||||||||||||||||||||||||||||||||||
| "properties": [ | |||||||||||||||||||||||||||||||||||||||||||||||||||
| "llm.cloud.apikey", | |||||||||||||||||||||||||||||||||||||||||||||||||||
| "extendedThinking", | |||||||||||||||||||||||||||||||||||||||||||||||||||
| "llm.cloud.modelSource" | |||||||||||||||||||||||||||||||||||||||||||||||||||
| ] | |||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | |||||||||||||||||||||||||||||||||||||||||||||||||||
| "anthropic.claude-opus-4-6": { | |||||||||||||||||||||||||||||||||||||||||||||||||||
| "object": "claude-opus-4-6", | |||||||||||||||||||||||||||||||||||||||||||||||||||
| "properties": [ | |||||||||||||||||||||||||||||||||||||||||||||||||||
| "llm.cloud.apikey", | |||||||||||||||||||||||||||||||||||||||||||||||||||
| "extendedThinking", | |||||||||||||||||||||||||||||||||||||||||||||||||||
| "llm.cloud.modelSource" | |||||||||||||||||||||||||||||||||||||||||||||||||||
| ] | |||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | |||||||||||||||||||||||||||||||||||||||||||||||||||
| "anthropic.claude-haiku-4-5": { | |||||||||||||||||||||||||||||||||||||||||||||||||||
| "object": "claude-haiku-4-5", | |||||||||||||||||||||||||||||||||||||||||||||||||||
| "properties": [ | |||||||||||||||||||||||||||||||||||||||||||||||||||
| "llm.cloud.apikey", | |||||||||||||||||||||||||||||||||||||||||||||||||||
| "extendedThinking", | |||||||||||||||||||||||||||||||||||||||||||||||||||
| "llm.cloud.modelSource" | |||||||||||||||||||||||||||||||||||||||||||||||||||
| ] | |||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | |||||||||||||||||||||||||||||||||||||||||||||||||||
| "anthropic.claude-sonnet-4-5": { | |||||||||||||||||||||||||||||||||||||||||||||||||||
| "object": "claude-sonnet-4-5", | |||||||||||||||||||||||||||||||||||||||||||||||||||
| "properties": [ | |||||||||||||||||||||||||||||||||||||||||||||||||||
| "llm.cloud.apikey", | |||||||||||||||||||||||||||||||||||||||||||||||||||
| "extendedThinking", | |||||||||||||||||||||||||||||||||||||||||||||||||||
| "llm.cloud.modelSource" | |||||||||||||||||||||||||||||||||||||||||||||||||||
| ] | |||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | |||||||||||||||||||||||||||||||||||||||||||||||||||
| "anthropic.claude-opus-4-5": { | |||||||||||||||||||||||||||||||||||||||||||||||||||
| "object": "claude-opus-4-5", | |||||||||||||||||||||||||||||||||||||||||||||||||||
| "properties": [ | |||||||||||||||||||||||||||||||||||||||||||||||||||
| "llm.cloud.apikey", | |||||||||||||||||||||||||||||||||||||||||||||||||||
| "extendedThinking", | |||||||||||||||||||||||||||||||||||||||||||||||||||
| "llm.cloud.modelSource" | |||||||||||||||||||||||||||||||||||||||||||||||||||
| ] | |||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | |||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
@@ -523,6 +534,7 @@ | ||||||||||||||||||||||||||||||||||||||||||||||||||
| "object": "claude-opus-4-7", | |||||||||||||||||||||||||||||||||||||||||||||||||||
| "properties": [ | |||||||||||||||||||||||||||||||||||||||||||||||||||
| "llm.cloud.apikey", | |||||||||||||||||||||||||||||||||||||||||||||||||||
| "extendedThinking", | |||||||||||||||||||||||||||||||||||||||||||||||||||
| "llm.cloud.modelSource" | |||||||||||||||||||||||||||||||||||||||||||||||||||
| ] | |||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | |||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
@@ -537,97 +549,111 @@ | ||||||||||||||||||||||||||||||||||||||||||||||||||
| "object": "claude-fable-5", | |||||||||||||||||||||||||||||||||||||||||||||||||||
| "properties": [ | |||||||||||||||||||||||||||||||||||||||||||||||||||
| "llm.cloud.apikey", | |||||||||||||||||||||||||||||||||||||||||||||||||||
| "extendedThinking", | |||||||||||||||||||||||||||||||||||||||||||||||||||
| "llm.cloud.modelSource" | |||||||||||||||||||||||||||||||||||||||||||||||||||
| ] | |||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | |||||||||||||||||||||||||||||||||||||||||||||||||||
| "anthropic.claude-fable-latest": { | |||||||||||||||||||||||||||||||||||||||||||||||||||
| "object": "claude-fable-latest", | |||||||||||||||||||||||||||||||||||||||||||||||||||
| "properties": [ | |||||||||||||||||||||||||||||||||||||||||||||||||||
| "llm.cloud.apikey", | |||||||||||||||||||||||||||||||||||||||||||||||||||
| "extendedThinking", | |||||||||||||||||||||||||||||||||||||||||||||||||||
| "llm.cloud.modelSource" | |||||||||||||||||||||||||||||||||||||||||||||||||||
| ] | |||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | |||||||||||||||||||||||||||||||||||||||||||||||||||
| "anthropic.claude-haiku-latest": { | |||||||||||||||||||||||||||||||||||||||||||||||||||
| "object": "claude-haiku-latest", | |||||||||||||||||||||||||||||||||||||||||||||||||||
| "properties": [ | |||||||||||||||||||||||||||||||||||||||||||||||||||
| "llm.cloud.apikey", | |||||||||||||||||||||||||||||||||||||||||||||||||||
| "extendedThinking", | |||||||||||||||||||||||||||||||||||||||||||||||||||
| "llm.cloud.modelSource" | |||||||||||||||||||||||||||||||||||||||||||||||||||
| ] | |||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | |||||||||||||||||||||||||||||||||||||||||||||||||||
| "anthropic.claude-opus-4": { | |||||||||||||||||||||||||||||||||||||||||||||||||||
| "object": "claude-opus-4", | |||||||||||||||||||||||||||||||||||||||||||||||||||
| "properties": [ | |||||||||||||||||||||||||||||||||||||||||||||||||||
| "llm.cloud.apikey", | |||||||||||||||||||||||||||||||||||||||||||||||||||
| "extendedThinking", | |||||||||||||||||||||||||||||||||||||||||||||||||||
| "llm.cloud.modelSource" | |||||||||||||||||||||||||||||||||||||||||||||||||||
| ] | |||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | |||||||||||||||||||||||||||||||||||||||||||||||||||
| "anthropic.claude-opus-4-1": { | |||||||||||||||||||||||||||||||||||||||||||||||||||
| "object": "claude-opus-4-1", | |||||||||||||||||||||||||||||||||||||||||||||||||||
| "properties": [ | |||||||||||||||||||||||||||||||||||||||||||||||||||
| "llm.cloud.apikey", | |||||||||||||||||||||||||||||||||||||||||||||||||||
| "extendedThinking", | |||||||||||||||||||||||||||||||||||||||||||||||||||
| "llm.cloud.modelSource" | |||||||||||||||||||||||||||||||||||||||||||||||||||
| ] | |||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | |||||||||||||||||||||||||||||||||||||||||||||||||||
| "anthropic.claude-opus-4-7-fast": { | |||||||||||||||||||||||||||||||||||||||||||||||||||
| "object": "claude-opus-4-7-fast", | |||||||||||||||||||||||||||||||||||||||||||||||||||
| "properties": [ | |||||||||||||||||||||||||||||||||||||||||||||||||||
| "llm.cloud.apikey", | |||||||||||||||||||||||||||||||||||||||||||||||||||
| "extendedThinking", | |||||||||||||||||||||||||||||||||||||||||||||||||||
| "llm.cloud.modelSource" | |||||||||||||||||||||||||||||||||||||||||||||||||||
| ] | |||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | |||||||||||||||||||||||||||||||||||||||||||||||||||
| "anthropic.claude-opus-4-8": { | |||||||||||||||||||||||||||||||||||||||||||||||||||
| "object": "claude-opus-4-8", | |||||||||||||||||||||||||||||||||||||||||||||||||||
| "properties": [ | |||||||||||||||||||||||||||||||||||||||||||||||||||
| "llm.cloud.apikey", | |||||||||||||||||||||||||||||||||||||||||||||||||||
| "extendedThinking", | |||||||||||||||||||||||||||||||||||||||||||||||||||
| "llm.cloud.modelSource" | |||||||||||||||||||||||||||||||||||||||||||||||||||
| ] | |||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | |||||||||||||||||||||||||||||||||||||||||||||||||||
| "anthropic.claude-opus-4-8-fast": { | |||||||||||||||||||||||||||||||||||||||||||||||||||
| "object": "claude-opus-4-8-fast", | |||||||||||||||||||||||||||||||||||||||||||||||||||
| "properties": [ | |||||||||||||||||||||||||||||||||||||||||||||||||||
| "llm.cloud.apikey", | |||||||||||||||||||||||||||||||||||||||||||||||||||
| "extendedThinking", | |||||||||||||||||||||||||||||||||||||||||||||||||||
| "llm.cloud.modelSource" | |||||||||||||||||||||||||||||||||||||||||||||||||||
| ] | |||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | |||||||||||||||||||||||||||||||||||||||||||||||||||
| "anthropic.claude-opus-latest": { | |||||||||||||||||||||||||||||||||||||||||||||||||||
| "object": "claude-opus-latest", | |||||||||||||||||||||||||||||||||||||||||||||||||||
| "properties": [ | |||||||||||||||||||||||||||||||||||||||||||||||||||
| "llm.cloud.apikey", | |||||||||||||||||||||||||||||||||||||||||||||||||||
| "extendedThinking", | |||||||||||||||||||||||||||||||||||||||||||||||||||
| "llm.cloud.modelSource" | |||||||||||||||||||||||||||||||||||||||||||||||||||
| ] | |||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | |||||||||||||||||||||||||||||||||||||||||||||||||||
| "anthropic.claude-sonnet-4": { | |||||||||||||||||||||||||||||||||||||||||||||||||||
| "object": "claude-sonnet-4", | |||||||||||||||||||||||||||||||||||||||||||||||||||
| "properties": [ | |||||||||||||||||||||||||||||||||||||||||||||||||||
| "llm.cloud.apikey", | |||||||||||||||||||||||||||||||||||||||||||||||||||
| "extendedThinking", | |||||||||||||||||||||||||||||||||||||||||||||||||||
| "llm.cloud.modelSource" | |||||||||||||||||||||||||||||||||||||||||||||||||||
| ] | |||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | |||||||||||||||||||||||||||||||||||||||||||||||||||
| "anthropic.claude-sonnet-5": { | |||||||||||||||||||||||||||||||||||||||||||||||||||
| "object": "claude-sonnet-5", | |||||||||||||||||||||||||||||||||||||||||||||||||||
| "properties": [ | |||||||||||||||||||||||||||||||||||||||||||||||||||
| "llm.cloud.apikey", | |||||||||||||||||||||||||||||||||||||||||||||||||||
| "extendedThinking", | |||||||||||||||||||||||||||||||||||||||||||||||||||
| "llm.cloud.modelSource" | |||||||||||||||||||||||||||||||||||||||||||||||||||
| ] | |||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | |||||||||||||||||||||||||||||||||||||||||||||||||||
| "anthropic.claude-sonnet-latest": { | |||||||||||||||||||||||||||||||||||||||||||||||||||
| "object": "claude-sonnet-latest", | |||||||||||||||||||||||||||||||||||||||||||||||||||
| "properties": [ | |||||||||||||||||||||||||||||||||||||||||||||||||||
| "llm.cloud.apikey", | |||||||||||||||||||||||||||||||||||||||||||||||||||
| "extendedThinking", | |||||||||||||||||||||||||||||||||||||||||||||||||||
| "llm.cloud.modelSource" | |||||||||||||||||||||||||||||||||||||||||||||||||||
| ] | |||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | |||||||||||||||||||||||||||||||||||||||||||||||||||
| "anthropic.claude-opus-5": { | |||||||||||||||||||||||||||||||||||||||||||||||||||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. should fix — I checked every field object in this file against its profile's
These two are the newest and most capable profiles in the node, and they are the only reasoning models where the new toggle is missing. A user selecting Claude Opus 5 cannot turn extended thinking on at all. This also breaks the invariant the PR itself adds in
Suggested change
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fixed in |
|||||||||||||||||||||||||||||||||||||||||||||||||||
| "object": "claude-opus-5", | |||||||||||||||||||||||||||||||||||||||||||||||||||
| "properties": [ | |||||||||||||||||||||||||||||||||||||||||||||||||||
| "llm.cloud.apikey", | |||||||||||||||||||||||||||||||||||||||||||||||||||
| "extendedThinking", | |||||||||||||||||||||||||||||||||||||||||||||||||||
| "llm.cloud.modelSource" | |||||||||||||||||||||||||||||||||||||||||||||||||||
| ] | |||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | |||||||||||||||||||||||||||||||||||||||||||||||||||
| "anthropic.claude-opus-5-fast": { | |||||||||||||||||||||||||||||||||||||||||||||||||||
| "object": "claude-opus-5-fast", | |||||||||||||||||||||||||||||||||||||||||||||||||||
| "properties": [ | |||||||||||||||||||||||||||||||||||||||||||||||||||
| "llm.cloud.apikey", | |||||||||||||||||||||||||||||||||||||||||||||||||||
| "extendedThinking", | |||||||||||||||||||||||||||||||||||||||||||||||||||
| "llm.cloud.modelSource" | |||||||||||||||||||||||||||||||||||||||||||||||||||
| ] | |||||||||||||||||||||||||||||||||||||||||||||||||||
| } | |||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
Do not expose an inert extended-thinking toggle for Haiku.
The supplied Anthropic node documentation states Haiku models receive no thinking parameters. The runtime only selects native thinking when kwargs are produced, so these controls cannot take effect. Add an extended-thinking-capability gate (rather than using general reasoning capability alone), or exclude Haiku profiles from this field wiring.
nodes/src/nodes/llm_anthropic/services.json#L367-L373: remove or gateextendedThinkingfor Claude Haiku 4.5.nodes/src/nodes/llm_anthropic/services.json#L565-L571: remove or gateextendedThinkingfor Claude Haiku Latest.📍 Affects 1 file
nodes/src/nodes/llm_anthropic/services.json#L367-L373(this comment)nodes/src/nodes/llm_anthropic/services.json#L565-L571🤖 Prompt for AI Agents