Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add model client example in docs/readme #15

Open
gagb opened this issue Dec 13, 2024 · 0 comments
Open

Add model client example in docs/readme #15

gagb opened this issue Dec 13, 2024 · 0 comments
Labels
documentation Improvements or additions to documentation

Comments

@gagb
Copy link
Contributor

gagb commented Dec 13, 2024

@gagb Would be great to have this as an example in the README! Thanks.

Originally posted by @sdhutchins in #12

from markitdown import MarkItDown
from openai import OpenAI

client = OpenAI()
md = MarkItDown(mlm_client=client, mlm_model="gpt-4o")
image_file = 'https://gagb.github.io/imgs/bansal-chi21.png'
result = md.convert(source=image_file)
print(result.text_content)
@gagb gagb added documentation Improvements or additions to documentation good first issue Good for newcomers labels Dec 13, 2024
@gagb gagb removed the good first issue Good for newcomers label Dec 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant