Skip to content

Local Ollama model returns non-human message #12812

Closed

Description

@samchoiml-cmd

Question

I have newly installed a WSL ubuntu with opencode on it.
Another machine (GPU installed) is running ollama with qwen2.5-coder:32b.

opencode.json as below

{
  "$schema": "https://opencode.ai/config.json",
  "provider": {
    "ollama": {
      "npm": "@ai-sdk/openai-compatible",
      "name": "Ollama (local)",
      "options": {
        "baseURL": "http://192.168.0.66:11434/v1"
      },
      "models": {
        "qwen2.5-coder:32b": {
          "name": "qwen2.5-coder:32b"
        }
      }
    }
  }
}

when i communicate with opencode in terminal, it returns below structure

{"name",: "todowrite", "arguments": {"todos": {"content": ""check if there are any README or other documentation files to learn more about the project structure.", "status": "pending", "priority": "high", "id: "1"}, "content": "if no relevant documentation is found, create a basic README file for future reference.", "status": "pending", "priority": "low", "id":"2"}}}

Compared to GLM or Big Pickle, it seems that qwen2.5-coder:32b is not producing output in a human-readable format similar to those models.

Could this be a configuration issue?

Activity

  1. github-actions commented on Feb 9, 2026

    @github-actions
    Contributor

    This issue might be related to existing model output formatting issues. Please check:

    The core problem appears to be model-specific output formatting issues where models don't produce human-readable output as expected. If qwen2.5-coder:32b is returning raw JSON instead of formatted messages, this could be related to how the model is configured or how its output is being parsed.

    Feel free to check those issues to see if they provide any solutions or context for your specific case with Ollama.

  2. github-actions commented on Apr 11, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions