Skip to content

Commit

Permalink
Relax columns count when uploading csv (#8934)
Browse files Browse the repository at this point in the history
* Relax columns count when uploading csv

* Fix: missing correct handling for the other csv content type
  • Loading branch information
Fraggle authored and overmode committed Nov 27, 2024
1 parent f944289 commit 836e8be
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion front/lib/api/files/upload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ const extractContentAndSchemaFromCSV: ProcessingFunction = async (
columns: true,
skip_empty_lines: true,
trim: true,
relax_column_count: true,
}),
new CSVColumnAnalyzerTransform(),
file.getWriteStream({
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 836e8be

Please sign in to comment.