What's Changed
Key bugfix: The removal of datasets
from the default dependencies in 3.0.0b1 meant that if the user didn't have datasets
installed, the bootstrapping of MIPROv2 would fail silently, leading to worse optimization. Added datasets
back in commit 8aa065945.
Signatures, Adapters, & Types
- add dspy.Code by @chenmoneygithub in #8511
- Provide language to dspy.Code by @chenmoneygithub in #8519
- Use collections for type hints by @TomeHirata in #8513
- Add testing for PEP604 union types by @erandeutsch in #8475
- Fix type annotation for ensure_signature by @grisaitis in #8496
- Use model_dump instead of dict by @TomeHirata in #8493
- Fix native function calling in adapters by @chenmoneygithub in #8479
- Rename dspy.BaseType to dspy.Type by @chenmoneygithub in #8510
- Resolve "$def" for nested tool arg type by @chenmoneygithub in #8534
- Add token streaming support for XMLAdapter by @chenmoneygithub in #8478
Modules
- Update python_interpreter.py by @nillwyc in #8501
- unwrap pyodide object correctly by @arnavsinghvi11 in #8466
- Provide a
dspy.syncify
so that users can run optimizer on async dspy programs by @chenmoneygithub in #8509 - fix UnicodeDecodeError: 'gbk' codec can't decode by @nillwyc in #8522
Other
- Support MIPROv2 user confirmation in windows by @TomeHirata in #8485
- Run unit tests with real LLM calls by @TomeHirata in #8486
New Contributors
- @LukasMurdock made their first contribution in #8477
- @ken-dwyer made their first contribution in #8474
- @grisaitis made their first contribution in #8496
- @vacmar01 made their first contribution in #8499
- @fswair made their first contribution in #8498
- @nillwyc made their first contribution in #8501
- @asad-aali made their first contribution in #8512
- @niklovescoding made their first contribution in #8515
- @MaximeRivest made their first contribution in #8527
- @brenorb made their first contribution in #8542
Full Changelog: 3.0.0b2...3.0.0b3