fix: correctly pass custom llm prompt parameter (#1319)

* fix: correctly pass custom llm prompt parameter
This commit is contained in:
Stefan Rink
2025-08-26 23:51:10 +02:00
committed by GitHub
parent ea1a3dfb60
commit b81a387616
3 changed files with 53 additions and 2 deletions

View File

@@ -164,14 +164,14 @@ result = md.convert("test.pdf")
print(result.text_content)
```
To use Large Language Models for image descriptions, provide `llm_client` and `llm_model`:
To use Large Language Models for image descriptions (currently only for pptx and image files), provide `llm_client` and `llm_model`:
```python
from markitdown import MarkItDown
from openai import OpenAI
client = OpenAI()
md = MarkItDown(llm_client=client, llm_model="gpt-4o")
md = MarkItDown(llm_client=client, llm_model="gpt-4o", llm_prompt="optional custom prompt")
result = md.convert("example.jpg")
print(result.text_content)
```