dspy icon indicating copy to clipboard operation
dspy copied to clipboard

fix(dspy): save and restore `dsp.settings.trace` in `backtrack_handler()`

Open theta-lin opened this issue 6 months ago • 2 comments

This fixes the issue that originally, backtrack_handler() clears dsp.settings.trace, which is also used by optimizers such as BootstrapFewShot.

Also some ruff linting of tests/predict/test_retry.py.

Fixes #1356

theta-lin avatar Aug 06 '24 14:08 theta-lin