Support OCR of image files in File Parser block (#4609)

This commit is contained in:
Marc Kelechava
2026-02-02 21:37:12 -08:00
committed by GitHub
parent b64c7d4032
commit fcbe7fe84f
7 changed files with 60 additions and 10 deletions

View File

@@ -188,7 +188,7 @@ const nodeLibraryItems: Array<{
/>
),
title: "File Parser Block",
description: "Parse PDFs, CSVs, and Excel files",
description: "Parse PDFs, CSVs, Excel files, and Images",
},
// {
// nodeType: "pdfParser",

View File

@@ -415,7 +415,7 @@ export type SendEmailBlock = WorkflowBlockBase & {
export type FileURLParserBlock = WorkflowBlockBase & {
block_type: "file_url_parser";
file_url: string;
file_type: "csv" | "excel" | "pdf";
file_type: "csv" | "excel" | "pdf" | "image";
json_schema: Record<string, unknown> | null;
};

View File

@@ -350,7 +350,7 @@ export type SendEmailBlockYAML = BlockYAMLBase & {
export type FileUrlParserBlockYAML = BlockYAMLBase & {
block_type: "file_url_parser";
file_url: string;
file_type: "csv" | "excel" | "pdf";
file_type: "csv" | "excel" | "pdf" | "image";
json_schema?: Record<string, unknown> | null;
};