@@ -216,7 +216,7 @@ async def simulate_async(
216
216
max_conversation_turns : int ,
217
217
parameters : List [dict ] = [],
218
218
jailbreak : bool = False ,
219
- api_call_retry_max_count : int = 3 ,
219
+ api_call_retry_limit : int = 3 ,
220
220
api_call_retry_sleep_sec : int = 1 ,
221
221
api_call_delay_sec : float = 0 ,
222
222
concurrent_async_task : int = 3
@@ -233,8 +233,8 @@ async def simulate_async(
233
233
:keyword jailbreak: If set to True, allows breaking out of the conversation flow defined by the template.
234
234
Defaults to False.
235
235
:paramtype jailbreak: bool, optional
236
- :keyword api_call_retry_max_count : The maximum number of API call retries in case of errors. Defaults to 3.
237
- :paramtype api_call_retry_max_count : int, optional
236
+ :keyword api_call_retry_limit : The maximum number of API call retries in case of errors. Defaults to 3.
237
+ :paramtype api_call_retry_limit : int, optional
238
238
:keyword api_call_retry_sleep_sec: The time in seconds to wait between API call retries. Defaults to 1.
239
239
:paramtype api_call_retry_sleep_sec: int, optional
240
240
:keyword api_call_delay_sec: The time in seconds to wait between API calls. Defaults to 0.
@@ -287,7 +287,7 @@ async def simulate_async(
287
287
template = t ,
288
288
parameters = p ,
289
289
max_conversation_turns = max_conversation_turns ,
290
- api_call_retry_max_count = api_call_retry_max_count ,
290
+ api_call_retry_limit = api_call_retry_limit ,
291
291
api_call_delay_sec = api_call_delay_sec ,
292
292
sem = semaphore ,
293
293
)
@@ -303,7 +303,7 @@ async def _simulate_async(
303
303
template : "Template" ,
304
304
max_conversation_turns : int ,
305
305
parameters : dict = {},
306
- api_call_retry_max_count : int = 3 ,
306
+ api_call_retry_limit : int = 3 ,
307
307
api_call_retry_sleep_sec : int = 1 ,
308
308
api_call_delay_sec : float = 0 ,
309
309
sem : "asyncio.Semaphore" = asyncio .Semaphore (3 ),
@@ -318,7 +318,7 @@ async def _simulate_async(
318
318
the simulations. Defaults to an empty list.
319
319
jailbreak (bool, optional): If set to True, allows breaking out of the conversation flow defined by the
320
320
template. Defaults to False.
321
- api_call_retry_max_count (int, optional): The maximum number of API call retries in case of errors.
321
+ api_call_retry_limit (int, optional): The maximum number of API call retries in case of errors.
322
322
Defaults to 3.
323
323
api_call_retry_sleep_sec (int, optional): The time in seconds to wait between API call retries. Defaults to 1.
324
324
api_call_delay_sec (float, optional): The time in seconds to wait between API calls. Defaults to 0.
@@ -339,7 +339,7 @@ async def _simulate_async(
339
339
# simulate the conversation
340
340
341
341
asyncHttpClient = AsyncHTTPClientWithRetry (
342
- n_retry = api_call_retry_max_count ,
342
+ n_retry = api_call_retry_limit ,
343
343
retry_timeout = api_call_retry_sleep_sec ,
344
344
logger = logging .getLogger (),
345
345
)
@@ -437,7 +437,7 @@ def _wrap_async(
437
437
max_conversation_turns : int ,
438
438
parameters : List [dict ] = [],
439
439
jailbreak : bool = False ,
440
- api_call_retry_max_count : int = 3 ,
440
+ api_call_retry_limit : int = 3 ,
441
441
api_call_retry_sleep_sec : int = 1 ,
442
442
api_call_delay_sec : float = 0 ,
443
443
concurrent_async_task : int = 1 ,
@@ -448,7 +448,7 @@ def _wrap_async(
448
448
parameters = parameters ,
449
449
max_conversation_turns = max_conversation_turns ,
450
450
jailbreak = jailbreak ,
451
- api_call_retry_max_count = api_call_retry_max_count ,
451
+ api_call_retry_limit = api_call_retry_limit ,
452
452
api_call_retry_sleep_sec = api_call_retry_sleep_sec ,
453
453
api_call_delay_sec = api_call_delay_sec ,
454
454
concurrent_async_task = concurrent_async_task ,
@@ -462,7 +462,7 @@ def simulate(
462
462
max_conversation_turns : int ,
463
463
parameters : List [dict ] = [],
464
464
jailbreak : bool = False ,
465
- api_call_retry_max_count : int = 3 ,
465
+ api_call_retry_limit : int = 3 ,
466
466
api_call_retry_sleep_sec : int = 1 ,
467
467
api_call_delay_sec : float = 0 ,
468
468
):
@@ -477,8 +477,8 @@ def simulate(
477
477
:type parameters: List[dict], optional
478
478
:param jailbreak: A flag to determine if the simulation should continue when encountering API errors.
479
479
:type jailbreak: bool, optional
480
- :param api_call_retry_max_count : The maximum number of retries for API calls upon encountering an error.
481
- :type api_call_retry_max_count : int, optional
480
+ :param api_call_retry_limit : The maximum number of retries for API calls upon encountering an error.
481
+ :type api_call_retry_limit : int, optional
482
482
:param api_call_retry_sleep_sec: The number of seconds to wait between retry attempts of an API call.
483
483
:type api_call_retry_sleep_sec: int, optional
484
484
:param api_call_delay_sec: The number of seconds to wait before making a new API call to simulate conversation delay.
@@ -497,7 +497,7 @@ def simulate(
497
497
max_conversation_turns ,
498
498
parameters ,
499
499
jailbreak ,
500
- api_call_retry_max_count ,
500
+ api_call_retry_limit ,
501
501
api_call_retry_sleep_sec ,
502
502
api_call_delay_sec ,
503
503
concurrent_async_task ,
0 commit comments