Skip to content

opencode: register four additional Go catalog models - #102

Merged
raine merged 2 commits into
raine:mainfrom
mulfyx:feat/opencode-go-model-refresh
Aug 8, 2026
Merged

opencode: register four additional Go catalog models#102
raine merged 2 commits into
raine:mainfrom
mulfyx:feat/opencode-go-model-refresh

Conversation

@mulfyx

@mulfyx mulfyx commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Register four additional OpenCode Go catalog IDs:
    • glm-5 and kimi-k2.5 through Chat Completions
    • qwen3.8-max and qwen3.5-plus through Anthropic Messages
  • Advertise both bare and opencode-go/... forms for each model.
  • Add table-driven regression coverage for model resolution, advertisement, and
    endpoint selection.
  • Document that a catalog model can be registered after direct protocol
    verification even when the current Go endpoint table omits it.

Motivation

OpenCode Go's public /models endpoint
currently returns all four IDs.

qwen3.8-max is also listed in OpenCode's current
Go endpoint table
as a /messages model. It was added upstream in
anomalyco/opencode#40228
after CCP's original OpenCode Go provider PR
was merged.

The current Go endpoint table omits the other three IDs, so their transports are
not inferred from /models. Their endpoint assignments were verified directly
against the live Go API:

  • glm-5 -> /chat/completions
  • kimi-k2.5 -> /chat/completions
  • qwen3.5-plus -> /messages

Those assignments also match OpenCode's current
Zen endpoint table.
OpenCode previously published glm-5 and kimi-k2.5 in its
Go documentation,
and qwen3.5-plus in a later
Go catalog update.

The proxy catalog remains static: an ID returned by /models is still rejected
unless its generation endpoint has been documented or verified.

Verification

  • cargo fmt --all -- --check
  • cargo clippy --all-targets -- -D warnings
  • cargo test --offline --all-targets: 956 passed, 0 failed
  • release Docker build
  • public Go /models contains all four IDs
  • live proxy generation:
    • glm-5: buffered, HTTP 200, end_turn
    • kimi-k2.5: streaming, HTTP 200, message_stop
    • qwen3.8-max: buffered, HTTP 200, end_turn
    • qwen3.5-plus: streaming, HTTP 200, message_stop

mulfyx and others added 2 commits August 8, 2026 19:26
Keep the provider documentation accurate as OpenCode updates its endpoint
table. Describe the stable registration policy instead of naming models whose
upstream documentation may change, and make the catalog description consistent
with mappings established through direct protocol verification.
@raine
raine merged commit 4ea0414 into raine:main Aug 8, 2026
2 checks passed
@raine

raine commented Aug 8, 2026

Copy link
Copy Markdown
Owner

Cheers

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants