-
Notifications
You must be signed in to change notification settings - Fork 42
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
Support for Azure OpenAI #13
Comments
I'm facing similar issue , I would like to use doctran with Azure open AI , I've got access to following environment variables : OPENAI_CHAT_API_BASE_URL OPENAI_EMBEDDING_VERSION but not sure how to use them with doctran |
I was able to use doctran for azure with this code from doctran import Doctran
import os
# This is the Azure OpenAI Endpoint
os.environ["OPENAI_API_BASE"] = "https://{YOUR_RESOURCE_NAME}.openai.azure.com/"
os.environ["OPENAI_API_VERSION"] = <API_VERSION>
doctran = Doctran(
openai_api_key=<AZURE_OPENAI_API_KEY>,
openai_deployment_id=<AZURE_OPENAI_DEPLOYMENT_ID>,
)
document = doctran.parse(
content="",
content_type="text"
) |
@aroffe99
but when I call interrogate : I get error :: Not enough information for me to go further , did you face such error ? |
please ignore my earlier comment , I had a problem with my version which was using older chat-completion api |
There is a previous issue that seems to have added this functionality, however it's not clear to me how I can use it.
How can I use Doctran with Azure OpenAI models?
The text was updated successfully, but these errors were encountered: