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

Ask AI is not present in the Code node on self-hosted Docker ver 1.41.1 #9460

Open
ed-parsadanyan opened this issue May 17, 2024 · 3 comments
Labels
in linear Issue or PR has been created in Linear for internal review

Comments

@ed-parsadanyan
Copy link

Bug Description

I've updated new .env variables for adding Ask AI features on the Docker instance:

      - N8N_AI_ENABLED
      - N8N_AI_OPENAI_API_KEY

In the HTTP Request node I see a new button:
image

However, when I enter Code node I don't see anything:
image

To Reproduce

  1. Update n8n to ver 1.41.1
  2. Create new empty workflow
  3. Drop an HTTP Request and Code nodes
  4. HTTP Request node UI has Ask AI features
  5. Code node doesn't :(

Expected behavior

I'd expect to see the updated UI in the Code Node, as suggested in the documentation:
image

Operating System

Ubuntu 22.04

n8n Version

1.41.1

Node.js Version

NA, Docker version

Database

PostgreSQL

Execution mode

main (default)

@Joffcom
Copy link
Member

Joffcom commented May 20, 2024

Hey @ed-parsadanyan,

Do you have another env options set? like N8N_DIAGNOSTICS_ENABLED=false or any errors in the browser console when opening the node?

@ed-parsadanyan
Copy link
Author

Hey @ed-parsadanyan,

Do you have another env options set? like N8N_DIAGNOSTICS_ENABLED=false or any errors in the browser console when opening the node?

Here's a full list of .env options:
image

N8N_DIAGNOSTICS_ENABLED=false is indeed present.

As of browser console messages, it seems to be OK
image

@Joffcom
Copy link
Member

Joffcom commented May 20, 2024

Hey @ed-parsadanyan,

Perfect so I suspect this is going to be related to an issue I found this morning where the feature in the code node is only available if N8N_DIAGNOSTICS_ENABLED is not set or set to true as it appears to use the feature flag from Posthog internally still.

I have created ADO-2231 as the internal dev ticket to change this so that the feature can be used without needing the telemetry to be enabled.

@Joffcom Joffcom added the in linear Issue or PR has been created in Linear for internal review label May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in linear Issue or PR has been created in Linear for internal review
Projects
None yet
Development

No branches or pull requests

2 participants