Removes duplicated call from langchain/client/langchain.py (#5449)

This removes duplicate code presumably introduced by a cut-and-paste
error, spotted while reviewing the code in
```langchain/client/langchain.py```. The original code had back to back
occurrences of the following code block:

```
        response = self._get(
            path,
            params=params,
        )
        raise_for_status_with_text(response)
```
searx_updates
Patrick Keane 12 months ago committed by GitHub
parent 0d3a9d481f
commit e09afb4b44
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -249,11 +249,6 @@ class LangChainPlusClient(BaseSettings):
params=params,
)
raise_for_status_with_text(response)
response = self._get(
path,
params=params,
)
raise_for_status_with_text(response)
result = response.json()
if isinstance(result, list):
if len(result) == 0:

Loading…
Cancel
Save