From 5d0242e3d166164c0cfbb5a97ccbb15bd3f2a21a Mon Sep 17 00:00:00 2001 From: Ethan Clarke Date: Fri, 13 Mar 2026 22:22:06 +0800 Subject: [PATCH 1/3] docs: add MiniMax as an OpenAI-compatible provider example --- README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/README.md b/README.md index 6da3ee1d9..72b70d41f 100644 --- a/README.md +++ b/README.md @@ -208,6 +208,21 @@ result = md.convert("example.jpg") print(result.text_content) ``` +Any OpenAI-compatible client works. For example, to use [MiniMax](https://www.minimaxi.com): + +```python +from markitdown import MarkItDown +from openai import OpenAI + +client = OpenAI( + api_key="YOUR_MINIMAX_API_KEY", + base_url="https://api.minimax.io/v1", +) +md = MarkItDown(llm_client=client, llm_model="MiniMax-M2.5") +result = md.convert("example.jpg") +print(result.text_content) +``` + ### Docker ```sh From 10022363ba03e7b7dd6b0a62c85dc4d7614101a7 Mon Sep 17 00:00:00 2001 From: Ethan Clarke Date: Fri, 13 Mar 2026 22:22:13 +0800 Subject: [PATCH 2/3] docs: add MiniMax example to markitdown-ocr README --- packages/markitdown-ocr/README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/packages/markitdown-ocr/README.md b/packages/markitdown-ocr/README.md index d0883db4a..d26dd076e 100644 --- a/packages/markitdown-ocr/README.md +++ b/packages/markitdown-ocr/README.md @@ -83,6 +83,21 @@ md = MarkItDown( ) ``` +Or with [MiniMax](https://www.minimaxi.com): + +```python +from openai import OpenAI + +md = MarkItDown( + enable_plugins=True, + llm_client=OpenAI( + api_key="YOUR_MINIMAX_API_KEY", + base_url="https://api.minimax.io/v1", + ), + llm_model="MiniMax-M2.5", +) +``` + ## How It Works When `MarkItDown(enable_plugins=True, llm_client=..., llm_model=...)` is called: From 663fb7951879aa056dc8e0712a1a781873014844 Mon Sep 17 00:00:00 2001 From: PR Bot Date: Wed, 18 Mar 2026 17:42:18 +0800 Subject: [PATCH 3/3] docs: upgrade MiniMax model reference to M2.7 - Update MiniMax model from M2.5 to M2.7 in code examples - M2.7 is the latest flagship model with enhanced reasoning and coding --- README.md | 2 +- packages/markitdown-ocr/README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 72b70d41f..e7bc81249 100644 --- a/README.md +++ b/README.md @@ -218,7 +218,7 @@ client = OpenAI( api_key="YOUR_MINIMAX_API_KEY", base_url="https://api.minimax.io/v1", ) -md = MarkItDown(llm_client=client, llm_model="MiniMax-M2.5") +md = MarkItDown(llm_client=client, llm_model="MiniMax-M2.7") result = md.convert("example.jpg") print(result.text_content) ``` diff --git a/packages/markitdown-ocr/README.md b/packages/markitdown-ocr/README.md index d26dd076e..52612cb32 100644 --- a/packages/markitdown-ocr/README.md +++ b/packages/markitdown-ocr/README.md @@ -94,7 +94,7 @@ md = MarkItDown( api_key="YOUR_MINIMAX_API_KEY", base_url="https://api.minimax.io/v1", ), - llm_model="MiniMax-M2.5", + llm_model="MiniMax-M2.7", ) ```