ollama - 💡(How to fix) Fix deepseek-r1:latest is wrongly marked to support tools [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
ollama/ollama#15023Fetched 2026-04-08 01:21:53
View on GitHub
Comments
0
Participants
1
Timeline
2
Reactions
0
Participants
Timeline (top)
closed ×1labeled ×1

Error Message

When I use deepseek-r1:latest for tool calling I get error saying it does not support tool calling. {"error":"registry.ollama.ai/library/deepseek-r1:latest does not support tools"}(base)

Code Example

curl http://localhost:11434/api/chat -d '{
  "model": "deepseek-r1:latest",
  "messages": [
    {"role": "user", "content": "What is the weather in SF?"}
  ],
  "tools": [
    {
      "type": "function",
      "function": {
        "name": "get_weather",
        "description": "Get weather",
        "parameters": {
          "type": "object",
          "properties": {
            "location": {"type": "string"}
          },
          "required": ["location"]
        }
      }
    }
  ]
}'
{"error":"registry.ollama.ai/library/deepseek-r1:latest does not support tools"}(base)
RAW_BUFFERClick to expand / collapse

What is the issue?

When I use deepseek-r1:latest for tool calling I get error saying it does not support tool calling. But in ollama model page it is marked to support tools as shown below.

<img width="960" height="212" alt="Image" src="https://github.com/user-attachments/assets/12073d0f-a269-446b-aaf7-d1c23738e544" />

https://ollama.com/library/deepseek-r1

Relevant log output

curl http://localhost:11434/api/chat -d '{
  "model": "deepseek-r1:latest",
  "messages": [
    {"role": "user", "content": "What is the weather in SF?"}
  ],
  "tools": [
    {
      "type": "function",
      "function": {
        "name": "get_weather",
        "description": "Get weather",
        "parameters": {
          "type": "object",
          "properties": {
            "location": {"type": "string"}
          },
          "required": ["location"]
        }
      }
    }
  ]
}'
{"error":"registry.ollama.ai/library/deepseek-r1:latest does not support tools"}(base)

OS

Linux

GPU

Nvidia

CPU

Intel

Ollama version

0.18.2

extent analysis

Fix Plan

The fix is to update the deepseek-r1 model to a version that supports tool calling.

Steps to Fix

  • Check the Ollama model page for the latest version of deepseek-r1 that supports tools.
  • Update the docker-compose.yml file to use the latest version of deepseek-r1.
  • Restart the Ollama service.

Example Code

# docker-compose.yml
version: '3'
services:
  ollama:
    image: ollama/ollama:0.18.2
    ports:
      - "11434:11434"
    environment:
      - MODEL_NAME=deepseek-r1:latest-tooling

Alternatively, you can use the following curl command to test the updated model:

curl http://localhost:11434/api/chat -d '{
  "model": "deepseek-r1:latest-tooling",
  "messages": [
    {"role": "user", "content": "What is the weather in SF?"}
  ],
  "tools": [
    {
      "type": "function",
      "function": {
        "name": "get_weather",
        "description": "Get weather",
        "parameters": {
          "type": "object",
          "properties": {
            "location": {"type": "string"}
          },
          "required": ["location"]
        }
      }
    }
  ]
}'

Verification

Verify that the fix worked by checking the response from the curl command. It should no longer return an error message indicating that the model does not support tools.

Extra Tips

  • Make sure to check the Ollama model page for the latest version of deepseek-r1 that supports tools.
  • If you are using a older version of Ollama, you may need to update to a newer version to support tool calling.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING