Skip to content

Commit

Permalink
Update llama_parse/base.py
Browse files Browse the repository at this point in the history
Co-authored-by: Logan <[email protected]>
  • Loading branch information
hexapode and logan-markewich authored Sep 10, 2024
1 parent 42a98f9 commit 8aa08c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions llama_parse/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -419,8 +419,8 @@ async def _aget_json(
result = await self._get_job_result(job_id, "json")
result["job_id"] = job_id

if isinstance(file_path, str):
result["file_path"] = file_path
if not isinstance(file_path, (bytes, BufferedIOBase)):
result["file_path"] = str(file_path)

return [result]
except Exception as e:
Expand Down

0 comments on commit 8aa08c5

Please sign in to comment.