stanfordnlp / dspy

DSPy: The framework for programming—not prompting—foundation models
https://dspy-docs.vercel.app/
MIT License
13.82k stars 1.06k forks source link

Bug - Dataset summary generation failing due to log file set to None #1200

Closed shubham-skr closed 1 week ago

shubham-skr commented 1 week ago

The dataset summary generation was failing when log_file is None, as at line 76 it does not check if the log_file is None resulting in an exception.

I fixed the problem by adding the code to check if log_file is None before write operation.

XenonMolecule commented 1 week ago

Thanks for catching this! Looks good to me, will merge if the checks all pass