#5896·nanobot

feat(providers): support OpenAI Responses API for opencode_go (muse-spark contributor)

Author: coinwhCreated Sep 24, 2026Updated Sep 24, 2026
Labelsgood first issuefeature requestpriority: p2

Problem

muse-spark-1.3-contributor / muse-spark-1.2-contributor on opencode.ai/zen/go/v1 require the OpenAI Responses wire format (/responses). The gateway's /chat/completions route returns 500 for them (see anomalyco/opencode#47349, anomalyco/opencode#44659).

In nanobot

The opencode_go provider is hardcoded to Chat Completions:

  • openai_compat_provider.py:536 forces api_type="auto" for any provider other than openai
  • config/schema.py rejects api_type: "responses" for providers.opencodeGo (raises ValueError)

So muse-spark is unusable through nanobot — requests fail with 503 endpoint is unavailable (the gateway's chat/completions route for these models is broken upstream).

Local workaround that works

Adding responses_models=("muse-spark-1.3-contributor", "muse-spark-1.2-contributor") to the opencode_go ProviderSpec in providers/registry.py routes those models through the existing /responses implementation (_should_use_responses_api → model_responses), and muse-spark works.

Request

Officially enable the Responses API for opencode_go, e.g.:

  1. add responses_models for the muse-spark contributor models in the registry, and/or
  2. allow api_type: "responses" for providers.opencodeGo (and other gateway providers that support it).

Environment

  • nanobot-ai 0.3.5
  • provider: opencode_go, base https://opencode.ai/zen/go/v1