Skip to main content
Some Tensormesh serverless reasoning models expose reasoning controls through chat template settings. The provider forwards model-specific options unchanged through providerOptions.tensormesh.chat_template_kwargs.

DeepSeek-V4-Flash

For the default non-thinking mode, omit reasoning controls:
For thinking modes, pass thinking: true and the model’s reasoning_effort inside chat_template_kwargs:
Use reasoning_effort: "max" when you specifically want DeepSeek-V4-Flash Think Max.

AI SDK Reasoning Fields

Use providerOptions.tensormesh.chat_template_kwargs for Tensormesh chat-template reasoning controls. The AI SDK/OpenAI-compatible reasoning and reasoningEffort settings are standard request fields and are sent as top-level reasoning_effort, not inside chat_template_kwargs.