markitdown
markitdown copied to clipboard
NameError in using ChatGPT OCR
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.