API Reference
reasoningKwargsFor
function reasoningKwargsFor(modelId, mode?): Record<string, unknown> | undefined;Defined in: providers/reasoning-kwargs.ts:328
Resolve the chat_template_kwargs to send for a model's thinking state, or
undefined to inject nothing (unknown / non-reasoning model, or an always-on
model with no toggle).
Parameters
| Parameter | Type | Default value | Description |
|---|---|---|---|
modelId | string | undefined | The model id, e.g. "deepseek-ai/DeepSeek-V4-Flash". |
mode | ThinkingMode | "auto" | Desired thinking state; defaults to "auto" (family default). |
Returns
Record<string, unknown> | undefined
The kwargs object to merge into the request body, or undefined.