Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
community: Fix closed session in Infinity (#26933)
**Description:** The `aiohttp.ClientSession` is closed at the end of the with statement, which causes an error during a second call. The implemented fix is to define the session directly within the with block, exactly like in the textembed code: https://github.com/langchain-ai/langchain/blob/c6350d636e139bd9018f7225d3257c4be6139d54/libs/community/langchain_community/embeddings/textembed.py#L335-L346 **Issue:** Fix #26932 Co-authored-by: ccurme <chester.curme@gmail.com>
- Loading branch information