NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
PyPI · #1676 most downloaded on PyPI
DSPy
Last release 10 days ago
25 Sep 2026
Release timing varies
gaps range from 2 weeks to 2 months
Nearly every release is documented
notes for 60 of the last 60 stable releases
4 versions withdrawn
withdrawn after publishing
2 years old
110 releases · first in 2024
Fix saving issue by @chenmoneygithub in https://github.com/stanfordnlp/dspy/pull/7905
import dspy by @chenmoneygithub in https://github.com/stanfordnlp/dspy/pull/7915Full Changelog: https://github.com/stanfordnlp/dspy/compare/2.6.10...2.6.11
Add support for non-image mimes in image_url content by @glesperance in https://github.com/stanfordnlp/dspy/pull/7872
Full Changelog: https://github.com/stanfordnlp/dspy/compare/2.6.9...2.6.10
One column per month.
Support multiturn history by @chenmoneygithub in https://github.com/stanfordnlp/dspy/pull/7851 https://github.com/stanfordnlp/dspy/pull/7874
Support multiturn history by @chenmoneygithub in https://github.com/stanfordnlp/dspy/pull/7851 https://github.com/stanfordnlp/dspy/pull/7874
Add evaluate callback by @TomeHirata in https://github.com/stanfordnlp/dspy/pull/7895
enh(mipro): Allow to pass provide_traceback in mipro by @Samoed in https://github.com/stanfordnlp/dspy/pull/7890
Fix signature field order mismatch by @Ziems in https://github.com/stanfordnlp/dspy/pull/7875
Fix save predict model with LM by @TomeHirata in https://github.com/stanfordnlp/dspy/pull/7861
Fix model name error in finetune by @TomeHirata in https://github.com/stanfordnlp/dspy/pull/7880
Fix pyproject.toml to include package data by @TomeHirata in https://github.com/stanfordnlp/dspy/pull/7869
Fixes and removes non-existent dependency on dsp.SentenceTransformersVectorizer from KNN and KNNFewShot by @cezarc1 in https://github.com/stanfordnlp/dspy/pull/7884
Add more testing before publishing to pypi by @hmoazam in https://github.com/stanfordnlp/dspy/pull/7889
Full Changelog: https://github.com/stanfordnlp/dspy/compare/2.6.8...2.6.9
Nothing published for this version
Correcting bundle files with dspy installation by @okhat in https://github.com/stanfordnlp/dspy/pull/7868
Full Changelog: https://github.com/stanfordnlp/dspy/compare/2.6.7...2.6.8
Fix RuntimeError: uvloop Incompatibility on Windows by @chakravarthik27 in https://github.com/stanfordnlp/dspy/pull/7842
Full Changelog: https://github.com/stanfordnlp/dspy/compare/2.6.6...2.6.7
Introduce dspy.Refine, dspy.BestOfN and fix thread safety for dspy.ChainOfThoughtWithHint by @chenmoneygithub in https://github.com/stanfordnlp/dspy/p
dspy.Refine, dspy.BestOfN and fix thread safety for dspy.ChainOfThoughtWithHint by @chenmoneygithub in https://github.com/stanfordnlp/dspy/pull/1959Full Changelog: https://github.com/stanfordnlp/dspy/compare/2.6.5...2.6.6
Finetune fix by @dilarasoylu in https://github.com/stanfordnlp/dspy/pull/7629
Full Changelog: https://github.com/stanfordnlp/dspy/compare/2.6.4...2.6.5
Improve Adapters (parse_value) and fix bugs & typos by @okhat in https://github.com/stanfordnlp/dspy/pull/7817
Full Changelog: https://github.com/stanfordnlp/dspy/compare/2.6.3...2.6.4
We are redoing the 2.6.3 because earlier we accidentally add a "v" prefix, i.e., v2.6.3, apologize for the inconvenience!
We are redoing the 2.6.3 because earlier we accidentally add a "v" prefix, i.e., v2.6.3, apologize for the inconvenience!
dspy.Tool by @chenmoneygithub in https://github.com/stanfordnlp/dspy/pull/7658Full Changelog: https://github.com/stanfordnlp/dspy/compare/2.6.2...2.6.3
InferRules optimizer by @arnavsinghvi11 in https://github.com/stanfordnlp/dspy/pull/7261
Full Changelog: https://github.com/stanfordnlp/dspy/compare/2.6.1...2.6.2
Enable Optuna to Learn from Full Evaluations in Minibatch Mode by @klopsahlong in https://github.com/stanfordnlp/dspy/pull/2237
Optimizers
Models and Modules
** Caching **
Full Changelog: https://github.com/stanfordnlp/dspy/compare/2.6.0...2.6.1
Removals for deprecated functional/, dsp/ clients, and old caches by @okhat in #1936
Removals for deprecated functional/, dsp/ clients, and old caches by @okhat in #1936
Simplify built-in modules. Prepare for assertions v2. by @okhat in #1943, #1944
Refined semantics for Settings thread-safety by @okhat in #1947
Streaming by @CyrusNuevoDia in #1874
BootstrapFT improvements relative to 2.4 by @okhat in #1996, #2024
Python interpreter refactor to sandbox by @arnavsinghvi11 in #1956, #2010
Support retries via LiteLLM RetryPolicy by @dbczumar in #1866
Improve Literal format adherence in ChatAdapter, JSONAdapter by @dbczumar in #1955
Add arg parsing for dspy.ReAct by @chenmoneygithub in #2039
Redirect math dataset by @chenmoneygithub in #3563
Update multi_chain_comparison.py by @zbambergerNLP in #2025
@okhat, @chenmoneygithub, @dbczumar, @arnavsinghvi11, @CyrusNuevoDia, @hmoazam, @itay1542, @zbambergerNLP, @GabeDottl, @bjsi, @Dyadd, and others
Nothing published for this version
Automate version upgrade and introduce dspy.__version__ by @hmoazam in https://github.com/stanfordnlp/dspy/pull/1985
dspy.__version__ by @hmoazam in https://github.com/stanfordnlp/dspy/pull/1985Full Changelog: https://github.com/stanfordnlp/dspy/compare/2.6.0rc6...2.6.0rc8
Nothing published for this version
add response_model key to LM history entry by @itay1542 in https://github.com/stanfordnlp/dspy/pull/1961
response_model key to LM history entry by @itay1542 in https://github.com/stanfordnlp/dspy/pull/1961Full Changelog: https://github.com/stanfordnlp/dspy/compare/2.6.0rc4...2.6.0rc6
Nothing published for this version
Streaming by @CyrusNuevoDia in https://github.com/stanfordnlp/dspy/pull/1874
Full Changelog: https://github.com/stanfordnlp/dspy/compare/2.6.0rc3...2.6.0rc4
Simplify built-in modules. Prepare for assertions v2. by @okhat in https://github.com/stanfordnlp/dspy/pull/1943, https://github.com/stanfordnlp/dspy/
Full Changelog: https://github.com/stanfordnlp/dspy/compare/2.6.0rc2...2.6.0rc3
Fix imports related to the removal of dsp/* by @okhat in https://github.com/stanfordnlp/dspy/pull/1937
Full Changelog: https://github.com/stanfordnlp/dspy/compare/2.6.0rc1...2.6.0rc2
Apply deprecations promised in v2.5: functional/, dsp/ clients and all, and old examples/, caches, and tests by @okhat in https://github.com/stanfordn…
functional/, dsp/ clients and all, and old examples/, caches, and tests by @okhat in https://github.com/stanfordnlp/dspy/pull/1936Full Changelog: https://github.com/stanfordnlp/dspy/compare/2.5.43...2.6.0rc1
Support returning logprobs in Predictor by @veronicalyu320 in https://github.com/stanfordnlp/dspy/pull/1895
Full Changelog: https://github.com/stanfordnlp/dspy/compare/2.5.42...2.5.43
Added support for more types by @thomasahle in https://github.com/stanfordnlp/dspy/pull/1900
Added support for more types by @thomasahle in https://github.com/stanfordnlp/dspy/pull/1900
Support structured outputs response format based on signature in JSON adapter by @dbczumar in https://github.com/stanfordnlp/dspy/pull/1881
Integrate cachetools for in-memory LM caching, including unhashable types & pydantic by @dbczumar in https://github.com/stanfordnlp/dspy/pull/1896; https://github.com/stanfordnlp/dspy/pull/1905; https://github.com/stanfordnlp/dspy/pull/1918
Add on_tool_start/end callbacks by @B-Step62 in https://github.com/stanfordnlp/dspy/pull/1879
Make DatabricksRM compatible with Mosaic agent framework by @chenmoneygithub in https://github.com/stanfordnlp/dspy/pull/1800
Full Changelog: https://github.com/stanfordnlp/dspy/compare/2.5.41...2.5.42
Include the Signature __doc__ in the system message for the ReAct module. by @yanmxa in https://github.com/stanfordnlp/dspy/pull/1840
__doc__ in the system message for the ReAct module. by @yanmxa in https://github.com/stanfordnlp/dspy/pull/1840Full Changelog: https://github.com/stanfordnlp/dspy/compare/2.5.40...2.5.41
Switch settings from contextvar to thread local storage (for Colab) by @okhat in https://github.com/stanfordnlp/dspy/pull/1860
Full Changelog: https://github.com/stanfordnlp/dspy/compare/2.5.39...2.5.40
fix settings contextmanager Full Changelog: https://github.com/stanfordnlp/dspy/compare/2.5.38...2.5.39
Full Changelog: https://github.com/stanfordnlp/dspy/compare/2.5.38...2.5.39
* add back settings.config Full Changelog: https://github.com/stanfordnlp/dspy/compare/2.5.37...2.5.38
Full Changelog: https://github.com/stanfordnlp/dspy/compare/2.5.37...2.5.38
Fix settings.context finally block: main_thread_config
Hotfix over 2.5.36
Full Changelog: https://github.com/stanfordnlp/dspy/compare/2.5.36...2.5.37
Convert dspy.settings to a ContextVar
by @okhat in https://github.com/stanfordnlp/dspy/pull/1852
Full Changelog: https://github.com/stanfordnlp/dspy/compare/2.5.35...2.5.36
Expand default cache limit to 30GB by @okhat in https://github.com/stanfordnlp/dspy/pull/1850
Full Changelog: https://github.com/stanfordnlp/dspy/compare/2.5.34...2.5.35
Introduce dspy.retrievers.Embeddings index (thread-safe, memory-friendly faiss kNN)
by @okhat in https://github.com/stanfordnlp/dspy/pull/1843
Full Changelog: https://github.com/stanfordnlp/dspy/compare/2.5.33...2.5.34
Add teacher module to MIPROv2 by @Shangyint in https://github.com/stanfordnlp/dspy/pull/1830
Full Changelog: https://github.com/stanfordnlp/dspy/compare/2.5.32...2.5.33
Revert back to more permissive dspy.settings multi-threaded access by @okhat in https://github.com/stanfordnlp/dspy/commit/9a70c7c42c
Full Changelog: https://github.com/stanfordnlp/dspy/compare/2.5.31...2.5.32
Fix asyncify but warn on settings read from unrecognized thread by @okhat in https://github.com/stanfordnlp/dspy/pull/1813
Full Changelog: https://github.com/stanfordnlp/dspy/compare/2.5.30...2.5.31
Change the way of enable/disable litellm logging by @chenmoneygithub in https://github.com/stanfordnlp/dspy/pull/1777
Full Changelog: https://github.com/stanfordnlp/dspy/compare/2.5.29...2.5.30
Databricks finetuning integration by @chenmoneygithub in https://github.com/stanfordnlp/dspy/pull/1770
Full Changelog: https://github.com/stanfordnlp/dspy/compare/2.5.28...2.5.29
Revamp BootstrapFinetune and merge BetterTogether to main by @dilarasoylu in https://github.com/stanfordnlp/dspy/pull/1698
Full Changelog: https://github.com/stanfordnlp/dspy/compare/2.5.27...2.5.28
Upgrade pinned litellm to 1.51.0
Full Changelog: https://github.com/stanfordnlp/dspy/compare/2.5.26...2.5.27
Remove structlog dependency by @chenmoneygithub in https://github.com/stanfordnlp/dspy/pull/1751
structlog dependency by @chenmoneygithub in https://github.com/stanfordnlp/dspy/pull/1751Full Changelog: https://github.com/stanfordnlp/dspy/compare/2.5.25...2.5.26
A bump. Refer to 2.5.24 for release notes.
A bump. Refer to 2.5.24 for release notes.
Add dspy.Embedding by @chenmoneygithub in https://github.com/stanfordnlp/dspy/pull/1735
dspy.Embedding by @chenmoneygithub in https://github.com/stanfordnlp/dspy/pull/1735Full Changelog: https://github.com/stanfordnlp/dspy/compare/2.5.23...2.5.24
Add support for images by @isaacbmiller in https://github.com/stanfordnlp/dspy/pull/1495
Full Changelog: https://github.com/stanfordnlp/dspy/compare/2.5.22...2.5.23
Add tenacity as a dependency to support LM retries with LiteLLM by @dbczumar in https://github.com/stanfordnlp/dspy/pull/1731
Full Changelog: https://github.com/stanfordnlp/dspy/compare/2.5.21...2.5.22
Add retries to LM calls with LiteLLM by @dbczumar in https://github.com/stanfordnlp/dspy/pull/1718
Full Changelog: https://github.com/stanfordnlp/dspy/compare/2.5.20...2.5.21
Updates to dspy.ReAct by @okhat in https://github.com/stanfordnlp/dspy/pull/1716
Full Changelog: https://github.com/stanfordnlp/dspy/compare/2.5.19...2.5.20
Revamp ReAct, adjust Bootstrap, adjust ChatAdapter by @okhat in https://github.com/stanfordnlp/dspy/pull/1713
Full Changelog: https://github.com/stanfordnlp/dspy/compare/2.5.18...2.5.19
JsonAdapter: Handle JSON formatting in demo's outputs by @okhat in https://github.com/stanfordnlp/dspy/pull/1702
Full Changelog: https://github.com/stanfordnlp/dspy/compare/2.5.17...2.5.18
Deprecate dspy.TypedPredictor and its variants. You'll get much better typed (and untyped) results out-of-the-box now with standard dspy.Predict, dspy…
Full Changelog: https://github.com/stanfordnlp/dspy/compare/2.5.16...2.5.17
Anyscale finetuning refactor by @isaacbmiller in https://github.com/stanfordnlp/dspy/pull/1666
Full Changelog: https://github.com/stanfordnlp/dspy/compare/2.5.15...2.5.16
Improve ChatAdapter's handling of typed values and Pydantic models by @okhat in https://github.com/stanfordnlp/dspy/pull/1663
Full Changelog: https://github.com/stanfordnlp/dspy/compare/2.5.14...2.5.15
Fix TypedPredictor formatting with list output values by @dbczumar in https://github.com/stanfordnlp/dspy/pull/1609
Full Changelog: https://github.com/stanfordnlp/dspy/compare/2.5.13...2.5.14
Refactor finetuning implementation to be 2.5 compatible by @isaacbmiller @dilarasoylu in https://github.com/stanfordnlp/dspy/pull/1594
Full Changelog: https://github.com/stanfordnlp/dspy/compare/2.5.12...2.5.13
Fix saving/loading retriever by @chenmoneygithub in https://github.com/stanfordnlp/dspy/pull/1638
Full Changelog: https://github.com/stanfordnlp/dspy/compare/2.5.11...2.5.12
Add SemanticF1, fix LM.copy, fix CoT.save
Add SemanticF1, fix LM.copy, fix CoT.save
Full Changelog: https://github.com/stanfordnlp/dspy/compare/2.5.10...2.5.11
Move path creation to BSFS init by @isaacbmiller in https://github.com/stanfordnlp/dspy/pull/1632
Full Changelog: https://github.com/stanfordnlp/dspy/compare/2.5.9...2.5.10
add support for reasoning/rationale in MultiChainComparison by @arnavsinghvi11 in https://github.com/stanfordnlp/dspy/pull/1630
Full Changelog: https://github.com/stanfordnlp/dspy/compare/2.5.8...2.5.9
Patch Poetry build fail due to litellm.caching by @krypticmouse in https://github.com/stanfordnlp/dspy/pull/1629
litellm.caching by @krypticmouse in https://github.com/stanfordnlp/dspy/pull/1629Full Changelog: https://github.com/stanfordnlp/dspy/compare/2.5.7...2.5.8
MIPROv2 Refactor & Documentation Updates by @klopsahlong in https://github.com/stanfordnlp/dspy/pull/1616
Full Changelog: https://github.com/stanfordnlp/dspy/compare/2.5.6...2.5.7
Fix signature saving at Predict saving by @chenmoneygithub in https://github.com/stanfordnlp/dspy/pull/1556
Full Changelog: https://github.com/stanfordnlp/dspy/compare/2.5.5...2.5.6
Your coding agent can read these notes before it upgrades. Set up the MCP server →