Skip to main content
Groq retired deepseek-r1-distill-llama-70b-specdec on March 24, 2025. Replace it with openai/gpt-oss-120b. See Groq deprecations.
basic.py

Run the Example

1

Set up your virtual environment

2

Install dependencies

3

Export your Groq API key

4

Replace DeepSeek R1 SpecDec

Replace deepseek-r1-distill-llama-70b-specdec with openai/gpt-oss-120b in the saved file.
5

Run the example

Save the code above as basic.py, then run:
Full source: cookbook/90_models/groq/reasoning/basic.py