Skip to content

Commit

Permalink
fix check
Browse files Browse the repository at this point in the history
Signed-off-by: SumanthRH <[email protected]>
  • Loading branch information
SumanthRH committed Feb 9, 2025
1 parent c5f7c88 commit ed082d9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion skythought/skythought_evals/inference_and_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ def perform_inference_and_save(
)
token_usages.append(token_usage_for_response)
completion_token += token_usage_for_response["completion_tokens"]
response_entries.append(response_entry)
response_entries.append(response_entry.to_dict())

completion_token /= args.n
prompt_token = response.num_input_tokens
Expand Down
2 changes: 1 addition & 1 deletion skythought/skythought_evals/util/response.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ class SingleParsedResponse:
correctness: Optional[bool] = None
reason: Optional[str] = None

def as_dict(self):
def to_dict(self):
return {
"content": self.content,
"correctness": self.correctness,
Expand Down

0 comments on commit ed082d9

Please sign in to comment.