Skip to content

MarkItDown: OpenAI and Claude Strategy Integration#2

Merged
muhammadumargroupdocs merged 2 commits intomainfrom
muhammadumar-patch
May 21, 2025
Merged

MarkItDown: OpenAI and Claude Strategy Integration#2
muhammadumargroupdocs merged 2 commits intomainfrom
muhammadumar-patch

Conversation

@muhammadumargroupdocs
Copy link
Copy Markdown
Member

New Features

  • Added support for multiple LLM providers (OpenAI and Claude).
  • Introduced --llm CLI flag to select LLM provider.
  • Applied Strategy Pattern for LLM integration (extensible design).
  • Refactored code to support clean API/CLI usage with insert_into_llm and llm_provider options.

Example: CLI Usage

markitdown document.docx --output-dir ./markdowns --llm claude

Example: Convert an Entire Folder via API

from openize.markitdown.core import MarkItDown

converter = MarkItDown(output_dir="./markdowns")
converter.convert_document("document.docx", insert_into_llm=True, llm_provider="claude")

@muhammadumargroupdocs muhammadumargroupdocs merged commit 54db5f6 into main May 21, 2025
1 check 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.

1 participant