Skip to content

NameError in using ChatGPT OCR #863

@tanreinama

Description

@tanreinama

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;

#861

I would appreciate it if you could respond.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions