Minimal LangChain Code node example does not work

Describe the problem/error/question

The example code for LangChain Code node does not work.

What is the error message (if any)?

Expected a Runnable, function or object. [line 5]

Please share your workflow

Share the output returned by the last node

Information on your n8n setup

  • n8n version: 1.38.1
  • Database (default: SQLite): SQLite
  • n8n EXECUTIONS_PROCESS setting (default: own, main): own
  • Running n8n via (Docker, npm, n8n cloud, desktop app): k8s
  • Operating system: ubuntu

As answered in another topic, if the Max Connections attribute is set to 1, this minimal example does work. Otherwise, it needs to be accessed as an array (i.e. llm[0])

2 Likes

New version [email protected] got released which includes the GitHub PR 9258.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.