Skip to content

Local Ollama models are not agentic #5694

Description

@iplayfast

Description

If I use opencode with BigPickle it works. If I use it with any Ollama model whether local or cloud, it is not able to see files.
I know that ollama does allow tool calling, and have even programmed it myself, so there must be a bug in opencode that doesn't work with ollama.
On linux.

OpenCode version

1.0.164

Steps to reproduce

  1. Install ollama

  2. ollama run nemotron-3-nano:30b-cloud

  3. edit ~/.opencode/opencode.json and add
    "ollama": {
    "npm": "@ai-sdk/openai-compatible",
    "name": "Ollama (local)",
    "options": {
    "baseURL": "http://localhost:11434/v1"
    },
    "models": {

     		"nemotron-3-nano:30b-cloud":{
     			"name": "nemotron-3-nano-cloud"
     		}
    

}
run it and have it write a hello world program or look at a hello world program. Can do it. Should be able to.

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions