instructor_ex icon indicating copy to clipboard operation
instructor_ex copied to clipboard

Add support for issuing chat completions against Azure OpenAI

Open armanm opened this issue 9 months ago • 3 comments

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.

armanm avatar May 06 '24 06:05 armanm