Code
Setreasoning_effort to "high" or "max" for deeper reasoning on complex tasks. While thinking is active, temperature, top_p, presence_penalty and frequency_penalty are ignored by the API.
cookbook/90_models/deepseek/reasoning_effort.py