langtest.leaderboard.save_file#

save_file(file_path: str, data)#

Save data to a file based on the file extension.

Parameters:
  • file_path (str) – The path to the file to save.

  • data (dict) – The data to save.

Raises:

ValueError – If the file format is not supported.