Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove private variable and use kwargs
  • Loading branch information
Nagkumar Arkalgud committed Oct 3, 2024
commit e672f62913bd460ec5cc3ee0a0d5640731ea3a1d
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,10 @@ async def __call__(
api_call_retry_sleep_sec: int = 1,
api_call_delay_sec: int = 0,
concurrent_async_task: int = 3,
_jailbreak_type: Optional[str] = None,
language: SupportedLanguages = SupportedLanguages.English,
randomize_order: bool = True,
randomization_seed: Optional[int] = None,
**kwargs,
):
"""
Executes the adversarial simulation against a specified target function asynchronously.
Expand Down Expand Up @@ -216,6 +216,7 @@ async def __call__(
total_tasks,
)
total_tasks = min(total_tasks, max_simulation_results)
_jailbreak_type = kwargs.get("_jailbreak_type", None)
if _jailbreak_type:
jailbreak_dataset = await self.rai_client.get_jailbreaks_dataset(type=_jailbreak_type)
progress_bar = tqdm(
Expand Down