Use Reasoning Models with dspy.TwoStepAdapter
Guide the user through configuring DSPy to work with reasoning models (o1, o3, o3-mini, DeepSeek-R1, Claude with extended thinking) that need special handling for structured output.
Why reasoning models need TwoStepAdapter
Reasoning models (o1, o3, DeepSeek-R1, Claude extended thinking) behave differently from standard chat models:
- They reject or ignore system prompts (o1/o3 strip them)
- They ignore formatting instructions (the mo
[Description truncada. Veja o README completo no GitHub.]