Skip to content
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): add reasoning_effort option to chat completions #13056

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

agniiva
Copy link

@agniiva agniiva commented Feb 4, 2025

This PR adds a new option called reasoning_effort to the OpenAI chat node. The new option allows users to constrain the reasoning effort for o1 models with supported values of low, medium, and high (default is medium). The option is added within the Options collection of the node and is configured to be sent as part of the request body.

To test:

  1. Add the OpenAI chat node in n8n.
  2. Enable the reasoning_effort option from the additional options and select one of the values.
  3. Execute the node and inspect the outgoing request payload to ensure the reasoning_effort property is included with the selected value.
  4. Verify that the response from the API is as expected when varying the reasoning_effort setting.

@CLAassistant
Copy link

CLAassistant commented Feb 4, 2025

CLA assistant check
All committers have signed the CLA.

@n8n-assistant n8n-assistant bot added community Authored by a community member node/improvement New feature or request in linear Issue or PR has been created in Linear for internal review labels Feb 4, 2025
@Joffcom
Copy link
Member

Joffcom commented Feb 4, 2025

Hey @agniiva,

Thanks for the PR, We have created "GHC-731" as the internal reference to get this reviewed.

One of us will be in touch if there are any changes needed, in most cases this is normally within a couple of weeks but it depends on the current workload of the team.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community Authored by a community member in linear Issue or PR has been created in Linear for internal review node/improvement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants