Describe the bug
Azure has an option for active directory authentication which allows you to log in via CLI instead of supplying API keys. The initializer for our OpenAIModel class requires an api_key as a parameter, and so throws an error if it is missing - even though it is not needed if this active directory approach is being used.
Describe the bug Azure has an option for active directory authentication which allows you to log in via CLI instead of supplying API keys. The initializer for our OpenAIModel class requires an api_key as a parameter, and so throws an error if it is missing - even though it is not needed if this active directory approach is being used.
To Reproduce Steps to reproduce the behavior:
Expected behavior Ideally we should recognize the active directory key and allow initialization without a key in this case.
Environment (please complete the following information):
Workaround Can add a random api_key to the OpenAIModel initialization call and it will be overridden by the active directory value.