{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/orq/json-schema/orq-thinking-config-enabled-schema-schema.json",
  "title": "Thinking config enabled",
  "description": "Enables the thinking mode capability",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/orq-completions-api-openapi.yml#/components/schemas/ThinkingConfigEnabledSchema",
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "enum": [
        "enabled"
      ],
      "description": "Enables or disables the thinking mode capability"
    },
    "budget_tokens": {
      "type": "number",
      "description": "Determines how many tokens the model can use for its internal reasoning process. Larger budgets can enable more thorough analysis for complex problems, improving response quality. Must be ≥1024 and less than `max_tokens`."
    },
    "thinking_level": {
      "type": "string",
      "enum": [
        "minimal",
        "low",
        "medium",
        "high"
      ],
      "description": "The level of reasoning the model should use. This setting is supported only by `gemini-3` models. If budget_tokens is specified and `thinking_level` is available, `budget_tokens` will be ignored."
    }
  },
  "required": [
    "type",
    "budget_tokens"
  ]
}