Skip to content

Commit

Permalink
adjust judge so that other arguments could get passed in
Browse files Browse the repository at this point in the history
  • Loading branch information
rchan26 committed Oct 15, 2024
1 parent 2ad66bf commit 1ee2a19
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/prompto/judge.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,10 +220,8 @@ def create_judge_inputs(self, judge: list[str] | str) -> list[dict]:
INPUT_PROMPT=response["prompt"],
OUTPUT_RESPONSE=response["response"],
),
"api": self.judge_settings[j]["api"],
"model_name": self.judge_settings[j]["model_name"],
"parameters": self.judge_settings[j]["parameters"],
}
| self.judge_settings[j]
| {f"input-{k}": v for k, v in response.items()}
for response in tqdm(
self.completed_responses,
Expand Down

0 comments on commit 1ee2a19

Please sign in to comment.