Skip to content

The agent engineering platform.

[Community]: `requests_kwargs` not being used in _fetch (#28646)

Mohammad Mohtashimfa155a422f54
diff --git a/libs/community/langchain_community/document_loaders/web_base.py b/libs/community/langchain_community/document_loaders/web_base.py
index 3eab7f351a..26bc5504d5 100644
--- a/libs/community/langchain_community/document_loaders/web_base.py
+++ b/libs/community/langchain_community/document_loaders/web_base.py
@@ -208,7 +208,10 @@ class WebBaseLoader(BaseLoader):
)
if not self.session.verify:
kwargs["ssl"] = False
- async with session.get(url, **kwargs) as response:
+
+ async with session.get(
+ url, **(self.requests_kwargs | kwargs)
+ ) as response:
if self.raise_for_status:
response.raise_for_status()
return await response.text()