Skip to content

Commit

Permalink
(fix) Fix logging in shared eval file to prevent key disclosure (All-…
Browse files Browse the repository at this point in the history
  • Loading branch information
tobitege authored Sep 28, 2024
1 parent c7fe399 commit c3bbe60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion evaluation/utils/shared.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ def model_dump(self, *args, **kwargs):
def model_dump_json(self, *args, **kwargs):
dumped = super().model_dump_json(*args, **kwargs)
dumped_dict = json.loads(dumped)
logger.debug(f'Dumped metadata: {dumped_dict}')
# avoid leaking sensitive information
dumped_dict['llm_config'] = self.llm_config.to_safe_dict()
logger.debug(f'Dumped metadata: {dumped_dict}')
return json.dumps(dumped_dict)


Expand Down

0 comments on commit c3bbe60

Please sign in to comment.