Examples of a Think tag parser, math problem solving, a code debugging agent, and a reasoning API.
Main run command: ollama run deepseek-r1
Run a DeepSeek R1 family model locally.
ollama pull deepseek-r1
ollama run deepseek-r1Separate the reasoning trace from the final answer for display in the UI.
Handle problems that need step-by-step reasoning with the R1 model.
Feed in the error log together with the code to generate the cause and a fix.
When adapting an example to a real service, first separate out the URL, credentials, thresholds, and report output location.
Go to the guide โ