From a9db2b0b92db34364d7136419706dedf417e4cad Mon Sep 17 00:00:00 2001 From: Bagatur <22008038+baskaryan@users.noreply.github.com> Date: Thu, 12 Oct 2023 17:24:06 -0700 Subject: [PATCH] fix tongyi import (#11745) --- libs/langchain/langchain/chat_models/tongyi.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/langchain/langchain/chat_models/tongyi.py b/libs/langchain/langchain/chat_models/tongyi.py index 28f6d232ba..42326b32df 100644 --- a/libs/langchain/langchain/chat_models/tongyi.py +++ b/libs/langchain/langchain/chat_models/tongyi.py @@ -285,7 +285,8 @@ class ChatTongyi(BaseChatModel): else: raise HTTPError( f"HTTP error occurred: status_code: {resp.status_code} \n " - f"code: {resp.code} \n message: {resp.message}" + f"code: {resp.code} \n message: {resp.message}", + response=resp, ) return _completion_with_retry(**kwargs)