finic-ai / doctran

MIT License
488 stars 42 forks source link

Add Azure OpenAI support #11

Closed maciejwie closed 1 year ago

maciejwie commented 1 year ago

The differences between OpenAI and Azure OpenAI endpoints are pretty small. See: https://learn.microsoft.com/en-us/azure/ai-services/openai/how-to/switching-endpoints

Clean up some unused and potentially misleading code. Add support for Azure OpenAI endpoints through environment variables. Bump project version.

yb-sid commented 1 year ago

@Ayan-Bandyopadhyay

Why can't I get openai_deployment_id for constructor of Doctran: TypeError: init() got an unexpected keyword argument 'openai_deployment_id'

has this change been published to PyPI ?