mirror of https://github.com/hwchase17/langchain
Enabled Azure Active Directory token-based auth access to OpenAI completions (#6313)
With AzureOpenAI openai_api_type defaulted to "azure" the logic in utils' get_from_dict_or_env() function triggered by the root validator never looks to environment for the user's runtime openai_api_type values. This inhibits folks using token-based auth, or really any auth model other than "azure." By removing the "default" value, this allows environment variables to be pulled at runtime for the openai_api_type and thus enables the other api_types which are expected to work. --------- Co-authored-by: Ebo <mebstyne@microsoft.com> Co-authored-by: Dev 2049 <dev.dev2049@gmail.com>pull/7675/head
parent
c7b687e944
commit
120c52589b
Loading…
Reference in New Issue