mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-06-05 14:55:18 +02:00
retry 2
This commit is contained in:
parent
351fd84bc6
commit
e32f9e76ed
1 changed files with 1 additions and 1 deletions
|
|
@ -46,7 +46,7 @@ class Action(ABC):
|
|||
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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue