Skip to content

Local ollama models partially missing #6180

@tqian86

Description

@tqian86

Description

After a recent update (currently on 1.0.202), some models in our local ollama server have gone missing. For example, given the following config in opencode.json:

{
  "$schema": "https://opencode.ai/config.json",
  "provider": {
    "ollama": {
      "npm": "@ai-sdk/openai-compatible",
      "name": "Ollama",
      "options": {
        "baseURL": "http://localhost:11434/v1"
      },
      "models": {
        "devstral-small-2:24b-cloud": {
          "name": "Devstral Small 2 (Cloud)"
        },
        "devstral-small-2:latest": {
          "name": "Devstral Small 2 (local)"
        },
        "devstral-2:123b-cloud": {
          "name": "Devstral 2 (Cloud)"
        }
      }
    }
  }
}

Opencode only sees the "Devstral 2 (Cloud)", but not the "Devstral Small 2 (local)" or "Devstral Small 2 (cloud)".

All three models show up when running ollama list, but opencode only shows one of them:

Image

OpenCode version

1.0.202

Steps to reproduce

  1. Create a opencode.json with the above config
  2. Check what models are reported in opencode.

Screenshot and/or share link

No response

Operating System

MacOS

Terminal

iTerm2

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