opencode-go: declare Anthropic SDK for Qwen models - #6856
Closed
Macho0x wants to merge 1 commit into
Closed
Conversation
The OpenCode Go gateway serves the Qwen models through the Anthropic Messages API: the entries already use budget_tokens reasoning, and qwen3.8-max's own comments cite the Anthropic messages endpoint. qwen3.8-flash already declares this via [provider] npm, and the Zen qwen3.5-plus/qwen3.6-plus entries do as well. Declare [provider] npm = "@ai-sdk/anthropic" on the remaining Go Qwen entries (qwen3.5-plus, qwen3.6-plus, qwen3.7-plus, qwen3.7-max, qwen3.8-max) so consumers resolving the protocol per model (e.g. the OpenCode CLI and Zed's registry fetch) stop falling back to the provider-level OpenAI-compatible default for these models.
Contributor
|
No actionable findings. |
Collaborator
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Problem
The OpenCode Go provider TOMLs for the Qwen models omit the per-model
[provider] npmoverride, so consumers resolving the API protocol per model (the OpenCode CLI, Zed's new registry fetch in zed-industries/zed#64070) fall back to the provider-level default@ai-sdk/openai-compatible— but the gateway actually serves these models through the Anthropic Messages API.Evidence already in the catalog:
qwen3.8-max.toml's own comments cite the Anthropic messages endpoint (https://help.aliyun.com/en/model-studio/anthropic-api-messages) and describethinking.typetoggle /budget_tokens/output_config.effortrequest fields.budget_tokensreasoning options, an Anthropic-API mechanism.qwen3.8-flash.tomlalready declares[provider] npm = "@ai-sdk/anthropic".qwen3.5-plus.tomlandqwen3.6-plus.tomlalready declare[provider] npm = "@ai-sdk/anthropic".Change
Adds
[provider] npm = "@ai-sdk/anthropic"to the OpenCode Go entries forqwen3.5-plus,qwen3.6-plus,qwen3.7-plus,qwen3.7-max, andqwen3.8-max, so the registry alone is authoritative about the protocol instead of requiring consumers to special-case the Qwen family.bun validatepasses.Release Notes: