The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
Fix requests wrapper refactor (#2417)
jerwelbornd6d6f322a95d
diff --git a/langchain/requests.py b/langchain/requests.pyindex 97f29af65a..6a3b33bfd0 100644--- a/langchain/requests.py+++ b/langchain/requests.py@@ -110,19 +110,19 @@ class TextRequestsWrapper(BaseModel):def post(self, url: str, data: Dict[str, Any], **kwargs: Any) -> str:"""POST to the URL and return the text."""- return self.requests.post(url, json=data, headers=self.headers, **kwargs).text+ return self.requests.post(url, data, **kwargs).textdef patch(self, url: str, data: Dict[str, Any], **kwargs: Any) -> str:"""PATCH the URL and return the text."""- return self.requests.patch(url, json=data, headers=self.headers, **kwargs).text+ return self.requests.patch(url, data, **kwargs).textdef put(self, url: str, data: Dict[str, Any], **kwargs: Any) -> str:"""PUT the URL and return the text."""- return self.requests.put(url, json=data, headers=self.headers, **kwargs).text+ return self.requests.put(url, data, **kwargs).textdef delete(self, url: str, **kwargs: Any) -> str:"""DELETE the URL and return the text."""- return self.requests.delete(url, headers=self.headers, **kwargs).text+ return self.requests.delete(url, **kwargs).textasync def aget(self, url: str, **kwargs: Any) -> str:"""GET the URL and return the text asynchronously."""