Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add PRO and ULTRA model options to sync and async extract #47

Merged
merged 3 commits into from
Oct 4, 2024

Conversation

jojortz
Copy link
Contributor

@jojortz jojortz commented Oct 4, 2024

Feature

  • add ModelType with BASE, PRO, and ULTRA options
  • update extract and async_extract to take in new model parameter
  • updated pdf_to_markdown.ipynb and async_pdf_to_markdown.ipynb to show different models

@jojortz jojortz requested a review from Sdddell as a code owner October 4, 2024 18:26
Comment on lines 104 to 109
if model == ModelType.BASE:
url = self._sync_url
else:
url = self._sync_refined_url
if model == ModelType.PRO:
payload["quick_mode"] = True
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's be explicit for elif model == ModelType.Pro and elif model == ModelType.Ultra, and else to raise an exception.

@CambioML
Copy link
Collaborator

CambioML commented Oct 4, 2024

Update the pyproject.toml and init to bump up the version and pypi release as a a weekly process.

@CambioML CambioML merged commit 58c96ac into main Oct 4, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants