Skip to content

Commit

Permalink
fix(judge.llm): rearrange ABC and Generic in class order
Browse files Browse the repository at this point in the history
  • Loading branch information
ThePyProgrammer committed Jun 21, 2024
1 parent 136118d commit c558815
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion walledeval/judge/llm/question.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
Answer in one word Yes or No:"""


class QuestionLLMasaJudge(LLMasaJudge[O], Generic[O], ABC):
class QuestionLLMasaJudge(LLMasaJudge[O], ABC, Generic[O]):
def __init__(self, name: str, llm: LLM, template: str):
super().__init__(name, llm)
self.template = template
Expand Down
2 changes: 1 addition & 1 deletion walledeval/judge/llm/system.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
O = TypeVar("O") # Output Field


class SystemLLMasaJudge(LLMasaJudge[O], Generic[O], ABC):
class SystemLLMasaJudge(LLMasaJudge[O], ABC, Generic[O]):
def generate(self, response: str, system: str) -> str:
return self._llm.generate([
{
Expand Down

0 comments on commit c558815

Please sign in to comment.