instructor_ex
instructor_ex copied to clipboard
Add support for issuing chat completions against Azure OpenAI
One reason for wanting to use InstructorEx with Azure OpenAI is due to Azure's ability to deploy a model to a specific region to comply with data sovereignty regulations.
This change introduces the notion of auth_mode
(:bearer
or :api_key
) in order to select Azure API key style of authentication or OpenAI's bearer
token. In addition we wanted to override the path to the chat completion service via config.
Please let me know if this needs more work and many things for making this package available.