Skip to content

Commit

Permalink
Merge pull request #1442 from duanguo108/v0.8-release
Browse files Browse the repository at this point in the history
fix bug:  qianfan_api.py _achat_completion_stream add request_timeout
  • Loading branch information
geekan authored Oct 11, 2024
2 parents c036574 + e4b8288 commit 05e7cbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion metagpt/provider/qianfan_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ async def acompletion(self, messages: list[dict], timeout: int = USE_CONFIG_TIME
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:
Expand Down

0 comments on commit 05e7cbf

Please sign in to comment.