DeepSeek Coder V2 fails in OpenCode: No Tooling Support ?! #2063

Closed
opened 2026-02-16 17:34:00 -05:00 by yindo · 7 comments
Owner

Originally created by @SkybuckFlying on GitHub (Oct 12, 2025).

Originally assigned to: @rekram1-node on GitHub.

Not sure if ollama or opencode issue:

To re-produce:

  1. Download DeepSeek Coder V2:

https://ollama.com/library/deepseek-coder-v2:16b

  1. Run:

ollama -serve

  1. Run:
    opencode

  2. Select model.

Try and talk to it...
What is the issue?

API Call Error ?!
Relevant log output

AI_APICallError: registry.ollama.ai/library/deepseek-coder-v2-16B-20K-ContextWindow-16GB:latest does not support tools

OS

Windows
GPU

Nvidia
CPU

AMD
Ollama version

v0.12.5

Also filed on ollama github:
https://github.com/ollama/ollama/issues/12592

Originally created by @SkybuckFlying on GitHub (Oct 12, 2025). Originally assigned to: @rekram1-node on GitHub. Not sure if ollama or opencode issue: To re-produce: 1. Download DeepSeek Coder V2: https://ollama.com/library/deepseek-coder-v2:16b 2. Run: ollama -serve 3. Run: opencode 4. Select model. Try and talk to it... What is the issue? API Call Error ?! Relevant log output AI_APICallError: registry.ollama.ai/library/deepseek-coder-v2-16B-20K-ContextWindow-16GB:latest does not support tools OS Windows GPU Nvidia CPU AMD Ollama version v0.12.5 Also filed on ollama github: https://github.com/ollama/ollama/issues/12592
yindo closed this issue 2026-02-16 17:34:00 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Oct 12, 2025):

This issue might be a duplicate of existing issues. Please check:

  • #303: Same exact error message "AI_APICallError: registry.ollama.ai/library/llama2:latest does not support tools" with Ollama models
  • #1619: "qwen3-coder:latest does not support tools" - same underlying tool support issue with Ollama
  • #1068: "Tool use with Ollama models" - discusses general tool calling problems with Ollama models including tool call failures
  • #234: "Tool Calling Issues with Open Source Models in OpenCode" - comprehensive issue about tool calling problems with various open source models including case sensitivity and compatibility issues
  • #590: "not being able to write files when using local models" - similar issue where tools aren't being executed with local models
  • #1034: "Local Ollama tool calling either not calling or failing outright" - very similar symptoms with Ollama models

The core issue appears to be that certain Ollama models don't support tool calling functionality, which is required for OpenCode's operation. This is a known limitation with various open source models served through Ollama.

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Oct 12, 2025): This issue might be a duplicate of existing issues. Please check: - #303: Same exact error message "AI_APICallError: registry.ollama.ai/library/llama2:latest does not support tools" with Ollama models - #1619: "qwen3-coder:latest does not support tools" - same underlying tool support issue with Ollama - #1068: "Tool use with Ollama models" - discusses general tool calling problems with Ollama models including tool call failures - #234: "Tool Calling Issues with Open Source Models in OpenCode" - comprehensive issue about tool calling problems with various open source models including case sensitivity and compatibility issues - #590: "not being able to write files when using local models" - similar issue where tools aren't being executed with local models - #1034: "Local Ollama tool calling either not calling or failing outright" - very similar symptoms with Ollama models The core issue appears to be that certain Ollama models don't support tool calling functionality, which is required for OpenCode's operation. This is a known limitation with various open source models served through Ollama. Feel free to ignore if none of these address your specific case.
Author
Owner

@rekram1-node commented on GitHub (Oct 12, 2025):

This is ollama telling you the model doesn't support tools, if you wanna talk to it in opencode you need to set tool_call to false so that opencode knows it doesn't support tools

Example:

{
  "$schema": "https://opencode.ai/config.json",
  "provider": {
    "ollama": {
      "models": {
        "deepseek-coder-v2:16b": {
          "tool_call": false
        }
      }
    }
  }
}

@rekram1-node commented on GitHub (Oct 12, 2025): This is ollama telling you the model doesn't support tools, if you wanna talk to it in opencode you need to set `tool_call` to false so that opencode knows it doesn't support tools Example: ``` { "$schema": "https://opencode.ai/config.json", "provider": { "ollama": { "models": { "deepseek-coder-v2:16b": { "tool_call": false } } } } } ```
Author
Owner

@shawal-mbalire commented on GitHub (Oct 28, 2025):

This worked for me to load deepseek coder
but the no support for tool support means I can not use the agentic functionality
right?

@shawal-mbalire commented on GitHub (Oct 28, 2025): This worked for me to load deepseek coder but the no support for tool support means I can not use the agentic functionality right?
Author
Owner

@rekram1-node commented on GitHub (Oct 28, 2025):

If the model doesn't support tools then it won't be great for agentic work

@rekram1-node commented on GitHub (Oct 28, 2025): If the model doesn't support tools then it won't be great for agentic work
Author
Owner

@shawal-mbalire commented on GitHub (Oct 29, 2025):

But creating a research agent out of it could be worthwhile
Just let it do it's think and use the results

@shawal-mbalire commented on GitHub (Oct 29, 2025): But creating a research agent out of it could be worthwhile Just let it do it's think and use the results
Author
Owner

@rekram1-node commented on GitHub (Oct 29, 2025):

it could be useful for summarizing or explaining something but it won't be able to acquire new information so it can't really research.

And then any other model that can use tools would be just as good at summarizing / explaining (because u can disable tools to avoid noise)

@rekram1-node commented on GitHub (Oct 29, 2025): it could be useful for summarizing or explaining something but it won't be able to acquire new information so it can't really research. And then any other model that can use tools would be just as good at summarizing / explaining (because u can disable tools to avoid noise)
Author
Owner

@shawal-mbalire commented on GitHub (Oct 29, 2025):

I see I guess I will stick to qwen coder for now. Thanks alot

@shawal-mbalire commented on GitHub (Oct 29, 2025): I see I guess I will stick to qwen coder for now. Thanks alot
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#2063