Skip to content

[Feature]: Only apply Guided/Structured grammar after reasoning steps in Reasoning models #12619

@cksac

Description

@cksac

🚀 The feature, motivation and pitch

Only apply Guided/Structured grammar only in the answer for reasoning model. i.e. for DeepSeek R1 only enforce grammar inside <answer></answer> or after </think>
This would make Reasoning models more useful in agent workflow expecting structured output.

Alternatives

No response

Additional context

No response

Before submitting a new issue...

  • Make sure you already searched for relevant issues, and asked the chatbot living at the bottom right corner of the documentation page, which can answer lots of frequently asked questions.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions