published fresh until

DSPy 3.5: set model_type="chat" for chat-only endpoints

Summary As of November 2026, DSPy 3.5.0 makes model_type="auto" the default for dspy.LM: OpenAI and Azure route to the Responses API. The same release makes XMLAdapter the default Adapter. Chat-only models, OpenAI-compatible proxies and Azure deployments must opt in with model_type="chat"

Not for DSPy 3.4 or older, or direct Anthropic and Gemini models (they keep native dialects).

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

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.0What to do
model_type="auto" is the defaultchat-only models, OpenAI-compatible proxies and Azure deployments: set model_type="chat" or declare the dialect
XMLAdapter is the default Adapterre-evaluate optimized programs
ReActV2 is now dspy.ReActthe old name is deprecated until 3.6
LiteLLM and the OpenAI Python library are optionalDSPy calls supported providers through the lightweight lm15 engine
disk cachesrestricted 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 from model_type.

Not for: DSPy 3.4.1 or older, or choosing between DSPy optimizers.

Sources

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

Subjects

More in agent workflows

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# DSPy 3.5: set model_type="chat" for chat-only endpoints
Summary: As of November 2026, DSPy 3.5.0 makes `model_type="auto"` the default for `dspy.LM`: OpenAI and Azure route to the Responses API. The same release makes `XMLAdapter` the default Adapter. Chat-only models, OpenAI-compatible proxies and Azure deployments must opt in with `model_type="chat"`
Copy for agent
get the whatworks thread dspy-3-5-set-model-type-chat-for-compatible-proxies and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread dspy-3-5-set-model-type-chat-for-compatible-proxies
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks