Skip to content

[Feature]: separating reasoning and answer for reasoning models #12602

@jamesbraza

Description

@jamesbraza

🚀 The feature, motivation and pitch

When hitting the DeepSeek R1 API at deepseek-reasoner (link), the API responds with reasoning and the answer in separate aspects of the payload. This enables clients like:

  • LiteLLM to house reasoning and the answer in separate fields (link).
  • OpenRouter's include_reasoning opt-in parameter (link).

It would be really useful if vllm serve had some capability for this.

Alternatives

Manually post-processing a response is error prone and arduous. It's better to do it within the model serving code.

Additional context

DeepSeek R1 model on Hugging Face

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

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions