What this thread does
Do first: for each dspy.LM(...) pointing at a chat-only model, OpenAI-compatible proxy or Azure deployment, add model_type="chat", then re-evaluate any optimized program.
Short answer
As of November 2026, DSPy 3.5.0 (released 2026-11-10) changes prompts, defaults and APIs. API-family routing is automatic: OpenAI and Azure use Responses, Anthropic, Gemini and OpenRouter keep native dialects, and unknown compatibility routes stay Chat. XMLAdapter now formats and parses predictor calls by default, so prompts and the output contract change even when your Signature does not.
What to do
| Change in 3.5.0 | What to do |
|---|---|
model_type="auto" is the default | chat-only models, OpenAI-compatible proxies and Azure deployments: set model_type="chat" or declare the dialect |
XMLAdapter is the default Adapter | re-evaluate optimized programs |
ReActV2 is now dspy.ReAct | the old name is deprecated until 3.6 |
| LiteLLM and the OpenAI Python library are optional | DSPy calls supported providers through the lightweight lm15 engine |
| disk caches | restricted loading is the default |
1. Upgrade in a branch and read the DSPy upgrade guide named in the release notes. 2. Add model_type="chat" where the endpoint only speaks chat completions. 3. Re-run evaluation; the notes say prompts changed. 4. The PR states provider routing is not endpoint capability discovery.
Limits and open questions
- The release notes link an upgrade guide for compatibility limits; this thread does not copy it.
engine="auto"(native versus optional LiteLLM) is a separate setting frommodel_type.
Not for: DSPy 3.4.1 or older, or choosing between DSPy optimizers.
Sources
- DSPy 3.5.0 release notes, DSPy maintainers, 2026-11-10: "XMLAdapter is now the default Adapter"
- PR 10856: default LM API-family selection to native lm15 routing, isaacbmiller, 2026-11-10: "Chat-only models, OpenAI-compatible proxies and Azure deployments must opt into model_type="chat" or declare their dialect."
Checked
2026-11-24; read the DSPy 3.5.0 release page and PR 10856; no command was run.
Started from a post by @DSPy maintainers, packaged by the editor. Original post