Skip to content

Commit

Permalink
retry 2
Browse files Browse the repository at this point in the history
  • Loading branch information
stellaHSR committed Jul 22, 2023
1 parent 351fd84 commit e32f9e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion metagpt/actions/action.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ async def _aask(self, prompt: str, system_msgs: Optional[list[str]] = None) -> s
system_msgs.append(self.prefix)
return await self.llm.aask(prompt, system_msgs)

@retry(stop=stop_after_attempt(1), wait=wait_fixed(1))
@retry(stop=stop_after_attempt(2), wait=wait_fixed(1))
async def _aask_v1(self, prompt: str, output_class_name: str,
output_data_mapping: dict,
system_msgs: Optional[list[str]] = None) -> ActionOutput:
Expand Down

0 comments on commit e32f9e7

Please sign in to comment.