From 722012436892bf4d5cea526d771b0848456d2f16 Mon Sep 17 00:00:00 2001 From: Funkeke <153349156+Funkeke@users.noreply.github.com> Date: Tue, 16 Jan 2024 03:43:13 +0800 Subject: [PATCH] community[patch]: fix tongyi completion and params error (#15544) fix tongyi completion json parse error and prompt's params error --------- Co-authored-by: fangkeke <3339698829@qq.com> Co-authored-by: Harrison Chase --- libs/community/langchain_community/chat_models/tongyi.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libs/community/langchain_community/chat_models/tongyi.py b/libs/community/langchain_community/chat_models/tongyi.py index be4373a505..004ffdd3b1 100644 --- a/libs/community/langchain_community/chat_models/tongyi.py +++ b/libs/community/langchain_community/chat_models/tongyi.py @@ -315,9 +315,7 @@ class ChatTongyi(BaseChatModel): ) resp = await asyncio.get_running_loop().run_in_executor( None, - functools.partial( - self.completion_with_retry, **{"run_manager": run_manager, **params} - ), + functools.partial(self.completion_with_retry, **params), ) generations.append( ChatGeneration(**self._chat_generation_from_qwen_resp(resp))