mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-04-25 00:36:55 +02:00
Merge pull request #1442 from duanguo108/v0.8-release
fix bug: qianfan_api.py _achat_completion_stream add request_timeout
This commit is contained in:
commit
05e7cbfba6
1 changed files with 1 additions and 1 deletions
|
|
@ -117,7 +117,7 @@ class QianFanLLM(BaseLLM):
|
|||
return await self._achat_completion(messages, timeout=self.get_timeout(timeout))
|
||||
|
||||
async def _achat_completion_stream(self, messages: list[dict], timeout: int = USE_CONFIG_TIMEOUT) -> str:
|
||||
resp = await self.aclient.ado(**self._const_kwargs(messages=messages, stream=True))
|
||||
resp = await self.aclient.ado(**self._const_kwargs(messages=messages, stream=True),request_timeout = timeout)
|
||||
collected_content = []
|
||||
usage = {}
|
||||
async for chunk in resp:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue