You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 27f08ff
Browse filesBrowse the repository at this point in the historyBrowse files
fix(opencode-go): adapt completions routes to the live service
Verified against the live service on 2026-09-20 across all catalog models:
- Several Completions models (GLM, DeepSeek, LongCat) accept the developer
role but silently ignore its content. Developer messages are now sent as
system messages, which every model honors.
- Some Completions routes reject a replayed assistant tool call that carries
no reasoning_content. It is now always sent, empty when the history has
none; every route accepts the empty value.
Both rules apply to every Completions route and come from the service's
observed behavior. Nothing is inferred from the model name: the same model
family is served by different upstreams with different behavior.
Also build the protocol delegates once in New instead of per call, omit the
Authorization header when no key is configured, carry catalog display names
on returned models, and add deepseek-flash, which the endpoint table omits
but the live service lists and serves.
Tests: an offline test routes every catalog model to its endpoint, and
env-gated TestIntegration_* tests (OPENCODE_GO_API_KEY) exercise a streamed
tool loop, a replay without reasoning and a developer instruction on every
catalog model.
0 commit comments