-
Notifications
You must be signed in to change notification settings - Fork 13.4k
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
feat(OpenAI Chat Model Node): Add reasoning effort option to control the amount of reasoning tokens to use #13103
Conversation
…the amount of reasoning tokens to use
Codecov ReportAttention: Patch coverage is
📢 Thoughts on this report? Let us know! |
|
n8n
|
Project |
n8n
|
Branch Review |
implement-reasoning-effort-o3
|
Run status |
|
Run duration | 04m 42s |
Commit |
|
Committer | JP van Oosten |
View all properties for this run ↗︎ |
Test results | |
---|---|
|
0
|
|
2
|
|
5
|
|
0
|
|
434
|
View all changes introduced in this branch ↗︎ |
✅ All Cypress E2E specs passed |
Got released with |
@@ -320,6 +353,15 @@ export class LmChatOpenAi implements INodeType { | |||
configuration.baseURL = credentials.url as string; | |||
} | |||
|
|||
// Extra options to send to OpenAI, that are not directly supported by LangChain |
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.
This is not true, option is already supported in the version that is used, check @langchain/openai/dist/chat_models.d.ts:103
at https://www.npmjs.com/package/@langchain/openai/v/0.3.17?activeTab=code
Summary
The o1 and o3 models support a new
reasoning_effort
parameter that controls how many reasoning tokens to use. This change implements that in the OpenAI Chat Model Node.Related Linear tickets, Github issues, and Community forum posts
Review / Merge checklist
release/backport
(if the PR is an urgent fix that needs to be backported)