Example Usage
import { ModelReasoning } from "@openrouter/sdk/models";
let value: ModelReasoning = {
mandatory: false,
};
Fields
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
defaultEffort | models.DefaultEffort | :heavy_minus_sign: | N/A | medium |
defaultEnabled | boolean | :heavy_minus_sign: | Default reasoning enabled state when the client does not set reasoning.enabled. | |
mandatory | boolean | :heavy_check_mark: | When true, reasoning cannot be disabled and effort “none” is rejected. | |
supportedEfforts | models.ReasoningEffort[] | :heavy_minus_sign: | Allowed reasoning effort values for this model, in descending effort order (highest first). Null means no allowlist — all gateway effort values are accepted. | |
supportsMaxTokens | boolean | :heavy_minus_sign: | Present and true when the model accepts reasoning.max_tokens in requests (Anthropic-style) instead of or in addition to reasoning.effort. Omitted otherwise. |