Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
hupe1980 committed Apr 14, 2024
1 parent 25c8d75 commit 177e4ce
Show file tree
Hide file tree
Showing 8 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ from typing import Any
import textwrap
from aisploit.core import BaseCallbackHandler, BasePromptValue, Score, Response
from aisploit.model import ChatOpenAI
from aisploit.redteam import RedTeamJob, RedTeamClassifierTask
from aisploit.red_team import RedTeamJob, RedTeamClassifierTask
from aisploit.target import target
from aisploit.demo import GandalfBot, GandalfLevel, GandalfScorer

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion aisploit/target/langchain.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ def send_prompt(self, prompt: BasePromptValue) -> Response:
parser = StrOutputParser()
return Response(content=parser.invoke(response))

raise ValueError(f"Unsupported cache value {type(response)}")
raise ValueError(f"Unsupported response value {type(response)}")
2 changes: 1 addition & 1 deletion examples/gandalf.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"from dotenv import load_dotenv\n",
"from aisploit.core import BaseCallbackHandler, BasePromptValue, Score, Response\n",
"from aisploit.model import ChatOpenAI\n",
"from aisploit.redteam import RedTeamJob, RedTeamClassifierTask\n",
"from aisploit.red_team import RedTeamJob, RedTeamClassifierTask\n",
"from aisploit.target import target\n",
"from aisploit.demo import GandalfBot, GandalfLevel, GandalfScorer\n",
"\n",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import pytest

from aisploit.core import BaseReport, Score
from aisploit.redteam import RedTeamReport, RedTeamReportEntry
from aisploit.red_team import RedTeamReport, RedTeamReportEntry


@pytest.fixture
Expand Down

0 comments on commit 177e4ce

Please sign in to comment.