mirror of
https://github.com/hwchase17/langchain.git
synced 2025-08-17 16:39:52 +00:00
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 <hw.chase.17@gmail.com>
This commit is contained in:
parent
ee378a0f40
commit
7220124368
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user