feat(providers): support OpenAI Responses API for opencode_go (muse-spark contributor)
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:536forcesapi_type="auto"for any provider other thanopenaiconfig/schema.pyrejectsapi_type: "responses"forproviders.opencodeGo(raisesValueError)
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.:
- add
responses_modelsfor the muse-spark contributor models in the registry, and/or - allow
api_type: "responses"forproviders.opencodeGo(and other gateway providers that support it).
Environment
- nanobot-ai 0.3.5
- provider:
opencode_go, basehttps://opencode.ai/zen/go/v1
Source: HKUDS/nanobot