From 24b4033db926cdb4c99c2b3d8eea1885fc125a48 Mon Sep 17 00:00:00 2001
From: Emanuel Ferreira <contatoferreirads@gmail.com>
Date: Thu, 28 Mar 2024 16:24:33 -0300
Subject: [PATCH] feat: add result type json (#673)

---
 .changeset/warm-fans-guess.md                 | 5 +++++
 packages/core/src/readers/LlamaParseReader.ts | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)
 create mode 100644 .changeset/warm-fans-guess.md

diff --git a/.changeset/warm-fans-guess.md b/.changeset/warm-fans-guess.md
new file mode 100644
index 000000000..9422c6e1e
--- /dev/null
+++ b/.changeset/warm-fans-guess.md
@@ -0,0 +1,5 @@
+---
+"llamaindex": patch
+---
+
+feat: add result type json
diff --git a/packages/core/src/readers/LlamaParseReader.ts b/packages/core/src/readers/LlamaParseReader.ts
index fdf456aae..daf5eb1ab 100644
--- a/packages/core/src/readers/LlamaParseReader.ts
+++ b/packages/core/src/readers/LlamaParseReader.ts
@@ -3,7 +3,7 @@ import { filetypemime } from "magic-bytes.js";
 import { Document } from "../Node.js";
 import type { FileReader } from "./type.js";
 
-type ResultType = "text" | "markdown";
+type ResultType = "text" | "markdown" | "json";
 
 /**
  * Represents a reader for parsing files using the LlamaParse API.
-- 
GitLab