Thinking
Toggles the reasoning ("thinking") pass of the deepseek-reasoner model.
When omitted, deepseek-reasoner behaves as if ThinkingType.ENABLED were passed.
Important behaviour observed against the live API: sending Thinking(ThinkingType.DISABLED) together with model = [ChatModel.DEEPSEEK_REASONER] causes the server to route the request to deepseek-chat. The returned ChatCompletion.model comes back as "deepseek-chat" and no reasoning_content is produced. Consumers that branch on response.model must account for this rewrite.
Example:
val params = chatCompletionParams {
model = ChatModel.DEEPSEEK_REASONER
thinking = Thinking(ThinkingType.DISABLED) // server routes to deepseek-chat
}Content copied to clipboard