Skip to content

MarkItDown v25.6.0: Gemini & Mistral LLM Integration, CLI Upgrades, and Cleaner API#3

Merged
muhammadumargroupdocs merged 1 commit intomainfrom
muhammadumar-patch
Jun 18, 2025
Merged

MarkItDown v25.6.0: Gemini & Mistral LLM Integration, CLI Upgrades, and Cleaner API#3
muhammadumargroupdocs merged 1 commit intomainfrom
muhammadumar-patch

Conversation

@muhammadumargroupdocs
Copy link
Copy Markdown
Member

New Features

  • Added support for multiple LLM providers: OpenAI, Claude, Gemini, and Mistral.
  • Introduced --llm CLI flag to select the desired LLM provider.
  • Applied the Strategy Pattern for LLM integration to allow clean extensibility.
  • Refactored core code for unified API/CLI usage with insert_into_llm and llm_provider options.

Example: CLI Usage

markitdown document.docx --output-dir ./markdowns --llm claude
markitdown document.pdf --output-dir ./markdowns --llm gemini
markitdown document.pptx --output-dir ./markdowns --llm mistral

Example: Convert an Entire Folder via API

from openize.markitdown.core import MarkItDown

converter = MarkItDown(output_dir="./markdowns")

# Convert document and send to Claude
converter.convert_document("document.docx", insert_into_llm=True, llm_provider="claude")

# Convert document and send to Gemini
converter.convert_document("presentation.pptx", insert_into_llm=True, llm_provider="gemini")

# Convert document and send to Mistral
converter.convert_document("financial.xlsx", insert_into_llm=True, llm_provider="mistral")

@muhammadumargroupdocs muhammadumargroupdocs merged commit f2a3819 into main Jun 18, 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