We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Please add the OPENAI_API_BASE environment variable for method=megaparse_vision that can be pulled into the megaparse_vision via API.
OPENAI_API_BASE
method=megaparse_vision
Alternatively, consider adding LiteLLM SDK so I can easily switch between models and providers.
example of the environment variable:
export OPENAI_API_BASE=http://127.0.0.1:8080/v1
Code example for SDK:
from megaparse import MegaParse from langchain_openai import ChatOpenAI from megaparse.parser.megaparse_vision import MegaParseVision import os model = ChatOpenAI(model="gpt-4o", api_key=os.getenv("OPENAI_API_KEY"), base_url=os.getenv("OPENAI_API_BASE"))
The text was updated successfully, but these errors were encountered:
Hi @qdrddr thanks for the heads up, I will do it when i have the time ! Do not hesitate to do a pull request :)
Sorry, something went wrong.
I'm not a developer, so my programming skills are limited @chloedia
No branches or pull requests
Please add the
OPENAI_API_BASE
environment variable formethod=megaparse_vision
that can be pulled into the megaparse_vision via API.Alternatively, consider adding LiteLLM SDK so I can easily switch between models and providers.
example of the environment variable:
export OPENAI_API_BASE=http://127.0.0.1:8080/v1
Code example for SDK:
The text was updated successfully, but these errors were encountered: