Skip to content

ollama tool calling issues #3029

@SkybuckFlying

Description

@SkybuckFlying

┃ # New session - 2025-10-08T06:46:14.387Z ┃
┃ /share to create a shareable link 3.2K/0% ┃

┃ ┃
┃ hello ┃
┃ skybu (08:46 AM) ┃
┃ ┃

 Hey there! How can I help you today?
 Build gpt-oss:20b (08:46 AM)

┃ ┃
┃ write "hello world" to test.txt ┃
┃ skybu (08:46 AM) ┃
┃ ┃

┃ ┃
┃ Repo_browser.read_file ┃
┃ ┃
┃ The arguments provided to the tool are invalid: Model tried to call unavailable tool 'repo_browser.read_file'. Available tools: ┃
┃ invalid, bash, edit, webfetch, glob, grep, list, read, write, todowrite, todoread, task. ┃
┃ ┃

┃ ┃
┃ Assistant ┃
┃ ┃
┃ The arguments provided to the tool are invalid: Model tried to call unavailable tool 'assistant'. Available tools: invalid, bash, ┃
┃ edit, webfetch, glob, grep, list, read, write, todowrite, todoread, task. ┃
┃ ┃

┃ ┃
┃ List %!s(float64=2) (path=) ┃
┃ ┃
┃ G:\Junk\testopencode/ ┃
┃ ┃
┃ ┃

┃ ┃
┃ Assistant ┃
┃ ┃
┃ The arguments provided to the tool are invalid: Model tried to call unavailable tool 'assistant'. Available tools: invalid, bash, ┃
┃ edit, webfetch, glob, grep, list, read, write, todowrite, todoread, task. ┃
┃ ┃

┃ ┃
┃ Task ┃
┃ ┃
┃ ┃
Hey! I’m not sure what you’re trying to do. Could you let me know the details or what you’d like me to work on?
Build gpt-oss:20b (08:47 AM)


{
  "$schema": "https://opencode.ai/config.json",
  "provider": {
    "ollama": {
      "npm": "@ai-sdk/openai-compatible",
      "options": {
        "baseURL": "http://localhost:11434/v1"
      },
      "models": {
        "granite4:micro": { "tools": true },
        "gpt-oss:20b": { "tools": true },
        "QWEN14B40KContextWindow:latest": { "tools": true },
        "gemma3:4b": { "tools": true },
        "AI0002:latest": { "tools": true },
        "AI0001:latest": { "tools": true },
        "qwen3:1.7b": { "tools": true },
        "qwen3:14b": { "tools": true },
        "gemma3:12b": { "tools": true },
        "hf.co/bartowski/mistralai_Devstral-Small-2505-GGUF:IQ2_M": { "tools": true },
        "hf.co/bartowski/mistralai_Devstral-Small-2505-GGUF:IQ3_M": { "tools": true },
        "devstral-q3kl:latest": { "tools": true },
        "nomic-embed-text:v1.5": { "tools": true },
        "devstral:latest": { "tools": true },
        "JollyLlama/GLM-4-32B-0414-Q4_K_M:latest": { "tools": true },
        "gemma3:12b-it-qat": { "tools": true },
        "cogito:14b": { "tools": true },
        "deepcoder:latest": { "tools": true },
        "deepseek-r1:671b": { "tools": true },
        "deepseek-r1:1.5b": { "tools": true },
        "deepseek-r1:70b": { "tools": true },
        "deepseek-r1:14b": { "tools": true },
        "deepseek-r1:8b": { "tools": true },
        "deepseek-r1:7b": { "tools": true },
        "deepseek-r1:32b": { "tools": true },
        "llama3.3:latest": { "tools": true },
        "nemotron:latest": { "tools": true },
        "deepseek-coder-v2:16b": { "tools": true },
        "granite3-dense:8b": { "tools": true },
        "starcoder2:15b": { "tools": true },
        "codellama:code": { "tools": true },
        "codellama:latest": { "tools": true },
        "qwen2.5:7b": { "tools": true },
        "gemma2:27b": { "tools": true },
        "phi3:14b": { "tools": true },
        "llama3.2:latest": { "tools": true },
        "llama3.1:latest": { "tools": true },
        "reflection:latest": { "tools": true },
        "codellama:7b-code": { "tools": true }
      }
    }
  }
}

Tried simple version too:

{
  "$schema": "https://opencode.ai/config.json",
  "provider": {
    "ollama": {
      "npm": "@ai-sdk/openai-compatible",
      "options": {
        "baseURL": "http://localhost:11434/v1"
      },
      "models": {
        "granite4:micro": {
          "tools": true
        },
        "gpt-oss:20b": {
          "tools": true
        }
      }
    }
  }
}

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions