Skip to main content

Code

Set reasoning_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

Usage

1

Set up your virtual environment

2

Set your API key

3

Install dependencies

4

Run Agent