langchain/libs/community/langchain_community
Fernando de Oliveira ab205e7389
partners/openai + community: Async Azure AD token provider support for Azure OpenAI (#27488)
This PR introduces a new `azure_ad_async_token_provider` attribute to
the `AzureOpenAI` and `AzureChatOpenAI` classes in `partners/openai` and
`community` packages, given it's currently supported on `openai` package
as
[AsyncAzureADTokenProvider](https://github.com/openai/openai-python/blob/main/src/openai/lib/azure.py#L33)
type.

The reason for creating a new attribute is to avoid breaking changes.
Let's say you have an existing code that uses a `AzureOpenAI` or
`AzureChatOpenAI` instance to perform both sync and async operations.
The `azure_ad_token_provider` will work exactly as it is today, while
`azure_ad_async_token_provider` will override it for async requests.


If no one reviews your PR within a few days, please @-mention one of
baskaryan, efriis, eyurtsev, ccurme, vbarda, hwchase17.
2024-10-22 21:43:06 +00:00
..
adapters
agent_toolkits community: fix a typo in planner_prompt.py (#27489) 2024-10-21 14:59:33 +00:00
agents
callbacks community[patch]: update gpt-4o cost (#27038) 2024-10-07 09:06:30 -04:00
chains
chat_loaders
chat_message_histories
chat_models partners/openai + community: Async Azure AD token provider support for Azure OpenAI (#27488) 2024-10-22 21:43:06 +00:00
cross_encoders
docstore
document_compressors
document_loaders community: Update file_path type in JSONLoader.__init__() signature (#27535) 2024-10-22 11:18:36 -07:00
document_transformers
embeddings partners/openai + community: Async Azure AD token provider support for Azure OpenAI (#27488) 2024-10-22 21:43:06 +00:00
example_selectors
graph_vectorstores community: Cassandra Vector Store: modernize implementation (#27253) 2024-10-22 18:11:11 +00:00
graphs community: Fix database connections for neo4j (#27190) 2024-10-08 23:47:55 +00:00
indexes
llms partners/openai + community: Async Azure AD token provider support for Azure OpenAI (#27488) 2024-10-22 21:43:06 +00:00
memory
output_parsers
query_constructors
retrievers multiple: update docs urls to latest 2 (#26837) 2024-09-30 17:37:07 -07:00
storage Fixed typo in llibs/community/langchain_community/storage/sql.py (#27029) 2024-10-08 17:51:26 +00:00
tools [community] Add timeout control and retry for UC tool execution (#26645) 2024-10-09 06:31:48 +00:00
utilities community: fix DallE hidden open_api_key (#26996) 2024-10-21 19:46:56 +00:00
utils
vectorstores community: Cassandra Vector Store: modernize implementation (#27253) 2024-10-22 18:11:11 +00:00
__init__.py
cache.py
py.typed