# DSPy 3.5 makes LiteLLM optional, graduates RLM, Flex and GEPA, and switches the default adapter to XML

Canonical: https://theagenticweekly.com/news/dspy-3-5-lighter-lm-layer-xmladapter-default · Evidence: Reported · First seen: 2026-11-10 17:37 UTC · Source published: 2026-11-10 16:25 UTC · Brief published: 2026-11-11 07:02 UTC · Updated: 2026-11-11 07:02 UTC · Author: Agentic Weekly

> DSPy 3.5.0, released on GitHub on November 10, 2026 (UTC), "brings a lighter LM layer, graduated core modules, and new History and image capabilities for RLM," per its release notes. The notes report the measured default install falling from 206.7 MiB in 3.3.0 to 30.9 MiB, and warn that the release changes prompts, defaults and APIs.

## What changed

- LiteLLM and OpenAI's Python library are now optional: DSPy calls supported providers through a lightweight engine called lm15. The notes measure the default install at 30.9 MiB and 25 dependencies, against 206.7 MiB and 65 in 3.3.0, and fresh-process import at 0.49 s versus 1.01 s.
- dspy.RLM, dspy.Flex and dspy.GEPA are no longer experimental, and ReActV2 is now simply dspy.ReAct, with structured History and a typed submit tool; the old name is deprecated until 3.6.
- XMLAdapter is now the default adapter, which the notes say changes prompts and the output contract even when a Signature stays the same. model_type="auto" is also the new default for choosing between chat and responses APIs.
- RLM can save and reload conversation History (without restoring live interpreter variables), crop images with Pillow and send mixed text and image subqueries from its Python REPL; tools can return images, files and other content parts on supported provider routes.
- Prewarmed interpreters: the notes report cached Deno startup plus first execution dropping from 1.59 s in 3.4.1 to 0.45 s, and a Flex forward with a ready size-one InterpreterPool at 0.10 s.
- Disk caches are secure by default: restricted loading is now the default and plain NumPy arrays are stored without pickle.

## Who should act before upgrading

Anyone running optimized DSPy programs in production should treat this as a breaking upgrade. The default adapter switch to XML changes the prompt text and the output format the model is asked to follow, so prompts compiled by an optimizer under 3.4 may score differently. The release notes themselves tell users to read the upgrade guide and re-evaluate optimized programs.

Teams that depended on LiteLLM features through DSPy should check whether their provider is covered by the new lm15 path; the notes say LiteLLM is now optional rather than removed, and keep a compatibility route.

## What the release means for builders

A nearly sevenfold smaller default install and a halved import time, as the notes measure them, matter most for serverless functions and containers where cold starts are billed. Graduating RLM, Flex and GEPA out of experimental status signals the maintainers consider those APIs stable enough to build on.

## In the source's words

> "DSPy 3.5 brings a lighter LM layer, graduated core modules, and new History and image capabilities for RLM."
> (DSPy 3.5.0 release notes, https://github.com/stanfordnlp/dspy/releases/tag/3.5.0)

> "This release changes prompts, defaults and APIs."
> (DSPy 3.5.0 release notes, upgrading from 3.4.1, https://github.com/stanfordnlp/dspy/releases/tag/3.5.0)

> "changing prompts and the output contract even when your Signature stays the same"
> (DSPy 3.5.0 release notes, on XMLAdapter becoming the default, https://github.com/stanfordnlp/dspy/releases/tag/3.5.0)

## What we have not verified

- We did not run this release ourselves.
- The install size, dependency count, import time and interpreter startup figures are the maintainers' own measurements, partly on a 3.5 development snapshot; we did not reproduce them.
- We did not check which providers the lm15 engine supports or where LiteLLM is still needed.
- We did not measure how much the XMLAdapter default changes the scores of previously optimized programs.

## Timeline

- Source published: 2026-11-10 16:25 UTC
- First seen by our watcher: 2026-11-10 17:37 UTC (via GitHub releases: stanfordnlp/dspy)
- Brief published: 2026-11-11 07:02 UTC

## Sources

- [GitHub release: stanfordnlp/dspy 3.5.0](https://github.com/stanfordnlp/dspy/releases/tag/3.5.0) (primary source) (fetched 2026-11-11)

## Related

- [DSPy: verdict and setup guide](https://theagenticweekly.com/tools/dspy)
- [All news briefs](https://theagenticweekly.com/news)
- [New AI models this week](https://theagenticweekly.com/models/this-week)

## How to cite

Agentic Weekly, "DSPy 3.5 makes LiteLLM optional, graduates RLM, Flex and GEPA, and switches the default adapter to XML", published 2026-11-11 07:02 UTC, https://theagenticweekly.com/news/dspy-3-5-lighter-lm-layer-xmladapter-default
