The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
community: Fix error handling bug in ChatDeepInfra (#28918)
Andy Wermke5940ed39529b
diff --git a/libs/community/langchain_community/chat_models/deepinfra.py b/libs/community/langchain_community/chat_models/deepinfra.pyindex a0875aa8fe..b23402cdc0 100644--- a/libs/community/langchain_community/chat_models/deepinfra.py+++ b/libs/community/langchain_community/chat_models/deepinfra.py@@ -290,7 +290,7 @@ class ChatDeepInfra(BaseChatModel):async with request.apost(url=self._url(), data=self._body(kwargs), timeout=request_timeout) as response:- self._handle_status(response.status, response.text)+ self._handle_status(response.status, await response.text())return await response.json()except Exception as e:print("EX", e) # noqa: T201