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

CLI: add LLM support #175

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

CLI: add LLM support #175

wants to merge 6 commits into from

Conversation

casperdcl
Copy link

@casperdcl casperdcl commented Dec 20, 2024

  • please merge CLI: tidy #84 first
  • add --llm-model
  • add --llm-client-url
  • add --llm-client-header

Tested successfully using https://ollama.com/library/llava-phi3:

OPENAI_API_KEY=ollama \
markitdown tests/test_files/test.jpg --llm-client-url=http://localhost:11434/v1 --llm-model=llava-phi3

Note that:

  • --llm-client-header is needed for e.g. authori[sz]ation headers
  • I didn't add --llm-client=OpenAI becuase there are no other options yet
  • I hope MS will merge this despite it being a free alternative to its paid LLMs ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant