Releases: stanfordnlp/dspy
Releases · stanfordnlp/dspy
2.6.27
2.6.27a1
2.6.26
What's Changed
- Support
dspy.Tool
as input field type anddspy.ToolCall
as output field type by @chenmoneygithub in #8242 - fix inspect_history function calling issue #8315 by @iPersona in #8316
- Fix lint errors and lock uv dependencies by @TomeHirata in #8312
- Revert hotpotqa back to original (from #8234) as it's now alive by @okhat in #8317
New Contributors
Full Changelog: 2.6.25...2.6.26
2.6.25
What's Changed
Core
- Provide a standard base class for creating custom Signature field type by @chenmoneygithub in #8217
- dspy.Audio by @arnavsinghvi11 in #8214
- Fix audio attr name by @chenmoneygithub in #8241
- Fix ReinforceJob LM reference by @okhat in #8249
- Support python 3.13 by @TomeHirata in #8255
- Avoid importing optuna in dspy import by @TomeHirata in #8258
- Support custom imported module serialization with cloudpickle by @erandeutsch in #8286
- Support for Service Principal Auth for Databricks Retrieve with DSPy by @willsmithDB in #8293
- Fix Module history initialization by @okhat in #8307
- Add pytest-asyncio to deps list of testing before pypi by @chenmoneygithub in #8308
Modules
- Add CodeAct module by @TomeHirata in #8222
- Per module lm history by @chenmoneygithub in #8199
- Streaming: support models that don't split stream chunks in tokens by @chenmoneygithub in #8235
- Support predicted output in DSPy by @chenmoneygithub in #8247
- Bugfix: Ensure keys in both entities are merged by @estsauver in #8238
- Fixes utf-8 formatting issues in optimization saves by @ItzAmirreza in #8272
- Add langchain tool support by @TomeHirata in #8292
Misc
- fix: use forked hotpotqa to bring dataset alive #8233 by @vincentkoc in #8234
- fix(tests): use temp file for dataset by @estsauver in #8237
- feat(dspy): custom type resolution in Signatures by @isaacbmiller in #8232
- Remove dspy/.internal_dspyai/dist/ produced in the pipeline by @TomeHirata in #8240
- Fix DataLoader input key bug by @okhat in #8248
- Run tests with extra dependencies separately by @TomeHirata in #8246
- Ensure dspy.Image allows gs://image_urls from Google Cloud Platform (GCP) by @dimroc in #8267
- Fix the history related error of CodeAct by @TomeHirata in #8300
New Contributors
- @vincentkoc made their first contribution in #8234
- @estsauver made their first contribution in #8237
- @jmho made their first contribution in #8229
- @JHMuir made their first contribution in #8168
- @neilbhutada made their first contribution in #8250
- @carsonkahn-external made their first contribution in #8254
- @dimroc made their first contribution in #8267
- @erandeutsch made their first contribution in #8286
- @willsmithDB made their first contribution in #8293
Full Changelog: 2.6.24...2.6.25
2.6.24
What's Changed
Core
- Make it easier to do sync streaming by @chenmoneygithub in #8183
- Better default and warnings around LM max_tokens by @okhat in #8215
- Remove duplicated callback field from LM by @TomeHirata in #8230
Adapters
- Add AdapterParseError to dspy by @chenmoneygithub in #8212
Modules
- Fix spelling typo in react module by @BTripp1986 in #8191
- Move string representation of tool to Tool class by @TomeHirata in #8208
Optimizers
- Add GRPO Optimizer to DSPy by @Ziems @LakshyAAAgrawal @dilarasoylu @Harryllh in #8171
- Handle finetuning errors gracefully by @arnavsinghvi11 in #8194
New Contributors
- @BTripp1986 made their first contribution in #8191
Full Changelog: 2.6.23...2.6.24
2.6.23
What's Changed
Core
- Support streaming in async DSPy program by @chenmoneygithub in #8144
- Fix predict usage tracking by @chenmoneygithub in #8146
- Improve the positional args error message for dspy.Predict by @chenmoneygithub in #8152
- Support token streaming with json adapter by @chenmoneygithub in #8158
- Fix litellm retries by @chenmoneygithub in #8161
- Utility that converts async stream to sync stream by @chenmoneygithub in #8162
Optimizers
- Updating MIPROv2 Auto Settings by @klopsahlong in #8165
- MIPROv2 Updates by @klopsahlong in #8166
New Contributors
- @emmanuel-ferdman made their first contribution in #8160
- @Y-1huadb made their first contribution in #8131
- @Krishn1412 made their first contribution in #8129
Full Changelog: 2.6.22...2.6.23
2.6.22
What's Changed
Core
- Fix cache thread unsafety by @chenmoneygithub in #8133
Adapters & Modules
- Support async path in dspy.ReAct by @chenmoneygithub in #8139
- Fixes for Adapters (Pydantic validation) and SIMBA (candidate_programs) by @okhat in #8141
- Support args of custom types in dspy mcp tool by @chenmoneygithub in #8142
- Add cache to async LM call by @chenmoneygithub in #8135
- Adapters: Improve handling of literals and optionals by @okhat in #8143
New Contributors
- @SanjanShiv made their first contribution in #8124
Full Changelog: 2.6.21...2.6.22
2.6.21
2.6.20
What's Changed
Core Library
- Native async support for callbacks and
dspy.Tool
by @chenmoneygithub @TomeHirata in #8105, #8110, #8106 - Fix: Make sure Base LM builds on self.kwargs by @tikoehle in #8104
- Restore relaxation of openai version range, lost after refactor by @srowen in #8112
Modules
- Handle ReAct tool selection failures more gracefully by @okhat in #8114
- Add
dspy.Tool.from_mcp_tool
by @TomeHirata in #8130
New Contributors
- @tikoehle made their first contribution in #8104
- @srowen made their first contribution in #8112
- @assadyousuf made their first contribution in #8076
- @xinyij-goo made their first contribution in #8127
Full Changelog: 2.6.19...2.6.20
2.6.19
What's Changed
General
- Support async in DSPy critical paths by @chenmoneygithub in #8080
- Migrate from Poetry to UV by @chenmoneygithub in #8083
- Dspy fanout cache by @chenmoneygithub in #8062
- Remove unnecessary LM callback by @TomeHirata in #8098
Adapters
- Fix Pydantic Deprecation warning by @Miyamura80 in #8087
Modules
- ReAct tools: Fix default arg when type hints are not available by @chenmoneygithub in #8089
- Allow overwrite max_iter in ReAct by @TomeHirata in #8096
- Support composite arg type parsing in
dspy.Tool
by @chenmoneygithub in #8095 - Support kwargs in dspy Tool by @TomeHirata in #8102
New Contributors
- @Miyamura80 made their first contribution in #8087
Full Changelog: 2.6.18...2.6.19