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>
pull/16049/head
Funkeke 6 months ago committed by GitHub
parent ee378a0f40
commit 7220124368
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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…
Cancel
Save