Open ZeeshanZulfiqarAli opened 2 weeks ago
@ZeeshanZulfiqarAli can you make this optional. with something like a chunk
parameter.
I think the response should probably always include the pages, and then have this as an optional output:
inputTokens: 25543,
outputTokens: 210,
pages: [],
chunks: [],
Also if you come up with a better name than chunks I'm game.
const result = await zerox({
// Required
filePath: "path/to/file",
openaiAPIKey: process.env.OPENAI_API_KEY,
// Optional
cleanup: true, // Clear images from tmp after run.
chunk: false, // Return JSON array of elements on each page
});
This PR adds the ability to parse markdown into a json object.
For the following markdown:
This JSON is produced: