Skip to content

qwen3.6-27b - cannot disable thinking via OpenAI API endpoint #1378

Description

@jackwh

Hey there! Firstly oMLX is awesome, thank you for making MLX models so easy to run! 😎

Describe the bug

I'm calling mlx-community/Qwen3.6-27B-mxfp8 via the OpenAI API endpoint. No matter what I try, I can't get API request parameters to disable thinking.

Thinking can be disabled in the oMLX model settings by changing the preset, but I'd like to be able to do it programmatically at runtime.

The Qwen 3.6 model card says to set "chat_template_kwargs": {"enable_thinking": False}, in the request. I've tried this - as well as just a root-level enable_thinking parameter, not nested under chat_template_kwags but alongside parameters like temperature etc. - but it makes no difference.

oMLX logs show the parameters are being received, it just seems it's not affecting the model output.

I assume this is possible, but couldn't find docs explaining what I'm meant to be doing (if it's something different).

Expected behavior

Model thinking should be able to be disabled at runtime by API call, not just in the UI model settings.

Desktop (please complete the following information):

  • macOS Version: Tahoe 26.4.1
  • oMLX Version 0.3.9

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions