Skip to content

Failed to parse grammar - opencode #534

@remcocats

Description

@remcocats

When I try to connect opencode with the docker model I only get this answer:
Failed to parse grammar

My open code configuration is:

"dmr": {
      "npm": "@ai-sdk/openai-compatible",
      "name": "Docker Model Runner",
      "options": {
        "baseURL": "http://localhost:12434/engines/v1"
      },
      "models": {
        "ai/qwen3-coder": {
          "name": "Qwen3 Coder"
        }
      }
    }

I use a macbook pro and have installed Docker model with version: Docker Model Runner version v1.0.2

I also tried it using my new gigabyte AI TOP ATOM.

"dmr": {
      "npm": "@ai-sdk/openai-compatible",
      "name": "Docker Model Runner",
      "options": {
        "baseURL": "http://localhost:12434/engines/v1"
      },
      "models": {
        "ai/qwen3-coder": {
          "name": "Qwen3 Coder"
        }
      }
    }

With Docker Model Runner version v1.0.6

I followed the instruction based on: www.docker.com/blog/new-nvidia-spark-docker-model-runner/

I hope someone can help me out

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions