Skip to content

fix: improve ModelOption.THINKING with vLLM through OpenAI #1093

Closed

Description

@jakelorocco

From @ajbozarth's investigation in #1062 (comment):

The OpenAI backend currently maps ModelOption.THINKING to reasoning_effort (openai.py:672-686). For OpenAI proper / o-series that's correct, but for Qwen3 via vLLM the lever to disable thinking is chat_template_kwargs.enable_thinking, which is a different parameter — reasoning_effort=False would just get ignored (or rejected) by vLLM. So if we swap the error message to advertise model_options={ModelOption.THINKING: False} today, it'd send users at the exact failure mode this PR is trying to surface to a workaround that doesn't actually work for them.

We should endeavor to make our special model options comprehensive and cross-platform. We should investigate / implement if we can cover edge cases like this without breaking existing behavior. If chat template kwargs are ignored when not utilized (for all or at least most OpenAI compatible servers), we may just be able to always add this.

Activity

  1. added
    bug
    on May 19, 2026
  2. added
    area/backends
    on May 20, 2026
  3. added a commit that references this issue on Jun 9, 2026
    0253b25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area/backendsbug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions