diff --git a/packages/@n8n/nodes-langchain/nodes/vendors/OpenAi/actions/assistant/create.operation.ts b/packages/@n8n/nodes-langchain/nodes/vendors/OpenAi/actions/assistant/create.operation.ts index 185e0d94f..30664aebc 100644 --- a/packages/@n8n/nodes-langchain/nodes/vendors/OpenAi/actions/assistant/create.operation.ts +++ b/packages/@n8n/nodes-langchain/nodes/vendors/OpenAi/actions/assistant/create.operation.ts @@ -62,7 +62,7 @@ const properties: INodeProperties[] = [ type: 'multiOptions', // eslint-disable-next-line n8n-nodes-base/node-param-description-wrong-for-dynamic-multi-options description: - 'The files to be used by the assistant, there can be a maximum of 20 files attached to the assistant', + 'The files to be used by the assistant, there can be a maximum of 20 files attached to the assistant. You can use expression to pass file IDs as an array or comma-separated string.', typeOptions: { loadOptionsMethod: 'getFiles', }, @@ -161,7 +161,10 @@ export async function execute(this: IExecuteFunctions, i: number): Promise file_id.trim()); + } const options = this.getNodeParameter('options', i, {}); if (options.failIfExists) { diff --git a/packages/@n8n/nodes-langchain/nodes/vendors/OpenAi/actions/assistant/update.operation.ts b/packages/@n8n/nodes-langchain/nodes/vendors/OpenAi/actions/assistant/update.operation.ts index 1fe365b50..bdf92c0d6 100644 --- a/packages/@n8n/nodes-langchain/nodes/vendors/OpenAi/actions/assistant/update.operation.ts +++ b/packages/@n8n/nodes-langchain/nodes/vendors/OpenAi/actions/assistant/update.operation.ts @@ -41,7 +41,7 @@ const properties: INodeProperties[] = [ type: 'multiOptions', // eslint-disable-next-line n8n-nodes-base/node-param-description-wrong-for-dynamic-multi-options description: - 'The files to be used by the assistant, there can be a maximum of 20 files attached to the assistant', + 'The files to be used by the assistant, there can be a maximum of 20 files attached to the assistant. You can use expression to pass file IDs as an array or comma-separated string.', typeOptions: { loadOptionsMethod: 'getFiles', }, @@ -116,6 +116,10 @@ export async function execute(this: IExecuteFunctions, i: number): Promise file_id.trim()); + } if ((file_ids as IDataObject[]).length > 20) { throw new NodeOperationError( this.getNode(), @@ -124,7 +128,7 @@ export async function execute(this: IExecuteFunctions, i: number): Promise