Compare commits

...

1 Commits

Author SHA1 Message Date
Logan Markewich b9f13e746d fix language 2024-03-05 18:26:50 -06:00
3 changed files with 6 additions and 5 deletions
+3 -2
View File
@@ -182,8 +182,9 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.10"
}
"version": "3.10.12"
},
"orig_nbformat": 4
},
"nbformat": 4,
"nbformat_minor": 4
+2 -2
View File
@@ -136,7 +136,7 @@ class LlamaParse(BasePydanticReader):
verbose: bool = Field(
default=True, description="Whether to print the progress of the parsing."
)
language: Optional[str] = Field(
language: Language = Field(
default=Language.ENGLISH, description="The language of the text to parse."
)
@@ -178,7 +178,7 @@ class LlamaParse(BasePydanticReader):
# send the request, start job
url = f"{self.base_url}/api/parsing/upload"
async with httpx.AsyncClient(timeout=self.max_timeout) as client:
response = await client.post(url, files=files, headers=headers, data={"language": self.language})
response = await client.post(url, files=files, headers=headers, data={"language": self.language.value})
if not response.is_success:
raise Exception(f"Failed to parse the PDF file: {response.text}")
+1 -1
View File
@@ -1,6 +1,6 @@
[tool.poetry]
name = "llama-parse"
version = "0.3.5"
version = "0.3.6"
description = "Parse files into RAG-Optimized formats."
authors = ["Logan Markewich <logan@llamaindex.ai>"]
license = "MIT"