langchain/libs
Ana ebab2ea81b
Fix Azure National Cloud authentication using token (RBAC) (Generated by Ana - AI SDE) (#25843)
This pull request addresses the issue with authenticating Azure National
Cloud using token (RBAC) in the AzureSearch vectorstore implementation.

## Changes

- Modified the `_get_search_client` method in `azuresearch.py` to pass
`additional_search_client_options` to the `SearchIndexClient` instance.

## Implementation Details

The patch updates the `SearchIndexClient` initialization to include the
`additional_search_client_options` parameter:

```python
index_client: SearchIndexClient = SearchIndexClient(
    endpoint=endpoint,
    credential=credential,
    user_agent=user_agent,
    **additional_search_client_options
)
```

This change allows the `audience` parameter to be correctly passed when
using Azure National Cloud, fixing the authentication issues with
GovCloud & RBAC.

This patch was generated by [Ana - AI SDE](https://openana.ai/), an
AI-powered software development assistant.

This is a fix for [Issue
25823](https://github.com/langchain-ai/langchain/issues/25823)

---------

Co-authored-by: ccurme <chester.curme@gmail.com>
2024-12-16 18:22:24 +00:00
..
cli cli: warning on app add (#28619) 2024-12-09 06:07:14 +00:00
community Fix Azure National Cloud authentication using token (RBAC) (Generated by Ana - AI SDE) (#25843) 2024-12-16 18:22:24 +00:00
core core: release 0.3.25 (#28718) 2024-12-14 02:22:28 +00:00
experimental experimental: migrate to external repo (#26879) 2024-09-25 19:02:19 -07:00
langchain langchain[patch]: Release 0.3.12 (#28724) 2024-12-14 20:02:18 +00:00
partners partners: add 'model' alias for consistency in embedding classes (#28374) 2024-12-13 22:30:00 +00:00
standard-tests standard-tests: release 0.3.7 (#28637) 2024-12-09 15:12:18 -05:00
text-splitters text-splitters: extended-tests without socket (#28736) 2024-12-16 05:19:50 +00:00
packages.yml docs: more useful vercel warnings (#28699) 2024-12-13 03:07:24 +00:00