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 multiple: pydantic 2 compatibility, v0.3 (#26443) 2024-09-13 14:38:45 -07:00
agent_toolkits community: fix a typo in planner_prompt.py (#27489) 2024-10-21 14:59:33 +00:00
agents core[patch]: Fix "argument of type 'NoneType' is not iterable" error in LangChainTracer (#26576) 2024-09-17 10:29:46 -07:00
callbacks community[patch]: update gpt-4o cost (#27038) 2024-10-07 09:06:30 -04:00
chains multiple: pydantic 2 compatibility, v0.3 (#26443) 2024-09-13 14:38:45 -07:00
chat_loaders Improvement[Community] Improve methods in IMessageChatLoader (#25746) 2024-08-26 14:20:22 -04:00
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 multiple: pydantic 2 compatibility, v0.3 (#26443) 2024-09-13 14:38:45 -07:00
docstore
document_compressors multiple: pydantic 2 compatibility, v0.3 (#26443) 2024-09-13 14:38:45 -07:00
document_loaders community: Update file_path type in JSONLoader.__init__() signature (#27535) 2024-10-22 11:18:36 -07:00
document_transformers Improvement[Community] Improve api doc of BeautifulSoupTransformer (#26423) 2024-09-17 22:00:07 +00:00
embeddings partners/openai + community: Async Azure AD token provider support for Azure OpenAI (#27488) 2024-10-22 21:43:06 +00:00
example_selectors multiple: pydantic 2 compatibility, v0.3 (#26443) 2024-09-13 14:38:45 -07:00
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 multiple: pydantic 2 compatibility, v0.3 (#26443) 2024-09-13 14:38:45 -07:00
output_parsers multiple: pydantic 2 compatibility, v0.3 (#26443) 2024-09-13 14:38:45 -07:00
query_constructors add neo4j query constructor for self query (#25288) 2024-08-30 14:54:33 +00:00
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 multiple: pydantic 2 compatibility, v0.3 (#26443) 2024-09-13 14:38:45 -07:00
vectorstores community: Cassandra Vector Store: modernize implementation (#27253) 2024-10-22 18:11:11 +00:00
__init__.py
cache.py Patch enable to use Amazon OpenSearch Serverless(aoss) for Semantic Cache store (#25833) 2024-08-29 13:28:22 +00:00
py.typed