How to attach AI Language model as an input to Custom node?

I am creating my own custom node and I want to add a functionality of attaching an AI Language model as an input to the node. But whenever I attach an AI Language model to my node, it automatically gets attached to the Basic LLM Chain and the Chat Trigger Node. How do I prevent this?

inputs: [
	NodeConnectionType.Main,
	{
		type: NodeConnectionType.AiLanguageModel,
		required: true,
		displayName: 'Chat Model',
		maxConnections: 1,
	},
],
outputs: [NodeConnectionType.Main],

Information on your n8n setup

  • n8n version: 1.75.2
  • Database: SQLite
  • n8n EXECUTIONS_PROCESS setting: own, main
  • Running n8n via: npm
  • Operating system: Windows 11

It looks like your topic is missing some important information. Could you provide the following if applicable.

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

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