You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix: improve ModelOption.THINKING with vLLM through OpenAI #1093
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
fix(backends): route ModelOption.THINKING=bool to chat_template_kwarg…