Skip to content

Unable to disable reasoning (Typescript SDK) #129

@stayingcool

Description

@stayingcool

I’m unable to disable reasoning. I’ve reviewed the documentation and tried setting the following options under reasoning, but it still remains enabled:

effort: "none"
exclude: true
enabled: false
max_tokens: 0

Typescript Request Payload Sample:

{
  "model": "x-ai/grok-3-mini",
  "messages": [
    {
      "role": "system",
      "content": "You are Grok 3 Mini, a large language model from x-ai. Formatting Rules..."
    },
    {
      "role": "user",
      "content": "Which is bigger: 9.11 or 9.9?"
    }
  ],
  "stream": true,
  "streamOptions": {
    "includeUsage": true
  },
  "reasoning": {
   //  ‼️ ‼️ ‼️ What should we set here to turn off reasoning? ‼️ ‼️ ‼️
  }
}

SDK Version: package.json

"@openrouter/sdk": "^0.3.10",

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions