The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
community: Give more context on DeepInfra 500 errors (#25671)
mschoenb97ILe499caa9cd3f
diff --git a/libs/community/langchain_community/chat_models/deepinfra.py b/libs/community/langchain_community/chat_models/deepinfra.pyindex 41da4adc9d..ee670248a6 100644--- a/libs/community/langchain_community/chat_models/deepinfra.py+++ b/libs/community/langchain_community/chat_models/deepinfra.py@@ -449,7 +449,9 @@ class ChatDeepInfra(BaseChatModel):def _handle_status(self, code: int, text: Any) -> None:if code >= 500:- raise ChatDeepInfraException(f"DeepInfra Server: Error {code}")+ raise ChatDeepInfraException(+ f"DeepInfra Server error status {code}: {text}"+ )elif code >= 400:raise ValueError(f"DeepInfra received an invalid payload: {text}")elif code != 200: