Example Usage
import { ChatRequestReasoning } from "@openrouter/sdk/models";
let value: ChatRequestReasoning = {};
Fields
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
effort | models.ChatRequestEffort | ➖ | Constrains effort on reasoning for reasoning models | medium |
maxTokens | number | ➖ | Maximum number of tokens the model may spend on reasoning, for models that take a reasoning token budget instead of an effort level. Cannot be combined with reasoning.effort or the top-level reasoning_effort: a request that sets both is rejected with “Only one of “reasoning.effort” and “reasoning.max_tokens” can be specified”. | 2000 |
summary | models.ChatReasoningSummaryVerbosityEnum | ➖ | N/A | concise |