From 836e8be7d91ece0dcf645eb656f79edd03108e22 Mon Sep 17 00:00:00 2001 From: Sebastien Flory Date: Wed, 27 Nov 2024 11:56:16 +0100 Subject: [PATCH] Relax columns count when uploading csv (#8934) * Relax columns count when uploading csv * Fix: missing correct handling for the other csv content type --- front/lib/api/files/upload.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/front/lib/api/files/upload.ts b/front/lib/api/files/upload.ts index d746d752f185b..370ec1622aaf3 100644 --- a/front/lib/api/files/upload.ts +++ b/front/lib/api/files/upload.ts @@ -190,6 +190,7 @@ const extractContentAndSchemaFromCSV: ProcessingFunction = async ( columns: true, skip_empty_lines: true, trim: true, + relax_column_count: true, }), new CSVColumnAnalyzerTransform(), file.getWriteStream({ @@ -305,7 +306,7 @@ const processingPerContentType: ProcessingPerContentType = { tool_output: notSupportedError, }, "text/comma-separated-values": { - conversation: storeRawText, + conversation: extractContentAndSchemaFromCSV, folder_document: storeRawText, folder_table: extractContentAndSchemaFromCSV, avatar: notSupportedError,