Skip to content

Local ollama models partially missing #6180

Closed

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

Activity

  1. github-actions commented on Dec 26, 2025

    @github-actions
    Contributor

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

    The core issue appears to be the same - custom provider models are loading correctly (verified via config), but not all are appearing in the TUI interface. Feel free to ignore if your specific case with ollama models differs from the UI picker visibility issue.

  2. tqian86 commented on Dec 26, 2025

    @tqian86
    Author

    Further investigations show that this may not be limited to just local models. There are randomly missing models for OpenRouter (for example, GLM-4.7 just won't show up in the list) and Ollama Cloud as providers. Zed editor's AI provider integration can successfully pull all the models from OpenRouter and Ollama Cloud.

  3. mdlmarkham commented on Dec 26, 2025

    @mdlmarkham

    glm-4.7 from Ollama Cloud is missing for me.

  4. conradkoh commented on Dec 26, 2025

    @conradkoh

    github copilot opus 4.5 model is missing too. verified that it was still present in 1.0.193. broke in 1.0.194.

  5. tqian86 commented on Dec 26, 2025

    @tqian86
    Author

    I have one more observation to contribute for debugging: when I use the "opencode agent" from within Zed, which loads the same configuration, all the models from the local ollama server show up! So it's almost definitely a TUI bug?

  6. rekram1-node commented on Dec 28, 2025

    @rekram1-node
    Contributor

    This should be fixed in latest

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