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: add support for display options filtering in parameter options #12704

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

mateonunez
Copy link

@mateonunez mateonunez commented Jan 19, 2025

Summary

Hey n8n team! 👋

I was looking into issue #12675 a bit and I faced the same error: currently, the o1-models don’t support the system and/or developer roles, resulting in a Bad Request error (this is a known issue).

To mitigate the problem, I’ve implemented a quick-win solution and added logic as done for parameters also within the options. By doing this you'll be able to filter also options by a deterministic logic using the show and hide conditions. Also, I've create a new constant (as done as for models taht doens't support function calls) to encapsulate those models which doesn't support the System role.

Related Linear tickets, Github issues, and Community forum posts

Resolves #12675.

Review / Merge checklist

  • PR title and summary are descriptive. (conventions)
  • Docs updated or follow-up ticket created.
  • Tests included.
  • PR Labeled with release/backport (if the PR is an urgent fix that needs to be backported)

@CLAassistant
Copy link

CLAassistant commented Jan 19, 2025

CLA assistant check
All committers have signed the CLA.

@n8n-assistant n8n-assistant bot added community Authored by a community member ui Enhancement in /editor-ui or /design-system in linear Issue or PR has been created in Linear for internal review labels Jan 19, 2025
@Joffcom
Copy link
Member

Joffcom commented Jan 19, 2025

Hey @mateonunez,

Thanks for the PR, We have created "GHC-630" 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.

@mateonunez mateonunez force-pushed the feat/visible-options branch from cd9ef1d to c9e1ab9 Compare January 21, 2025 08:00
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 ui Enhancement in /editor-ui or /design-system
Projects
None yet
Development

Successfully merging this pull request may close these issues.

OpenAI o1 and newer uses developer instead of system in messages
3 participants