Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
hupe1980 committed Apr 13, 2024
1 parent 16e956d commit 35eac66
Show file tree
Hide file tree
Showing 4 changed files with 386 additions and 309 deletions.
2 changes: 1 addition & 1 deletion aisploit/model/chat_anthropic.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def __init__(
**kwargs: Additional keyword arguments to be passed to the base class constructor.
"""
super().__init__(
anthropic_api_key=convert_to_secret_str(api_key) if api_key else None,
api_key=convert_to_secret_str(api_key) if api_key else None,
model_name=model_name,
temperature=temperature,
**kwargs,
Expand Down
2 changes: 1 addition & 1 deletion aisploit/redteam/job.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def execute(
)
)

if score.flagged: # task is completed
if score.flagged: # task is completed
break

current_prompt_text = response.content
Expand Down
Loading

0 comments on commit 35eac66

Please sign in to comment.