markitdown icon indicating copy to clipboard operation
markitdown copied to clipboard

NameError in using ChatGPT OCR

Open tanreinama opened this issue 1 week ago • 1 comments

When run the code in the sample to convert an image to Markdown, an error occurs.

from markitdown import MarkItDown
from openai import OpenAI

client = OpenAI()
md = MarkItDown(llm_client=client, llm_model="gpt-4o")
result = md.convert("example.jpg")
print(result.text_content)

I submitted a related PR;

https://github.com/microsoft/markitdown/pull/861

I would appreciate it if you could respond.

tanreinama avatar Feb 16 '25 04:02 tanreinama