fix: OpenCode Go Qwen models conflict with documented Anthropic endpoints - #5034
Open
github-actions[bot] wants to merge 1 commit into
Open
fix: OpenCode Go Qwen models conflict with documented Anthropic endpoints#5034github-actions[bot] wants to merge 1 commit into
github-actions[bot] wants to merge 1 commit into
Conversation
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.
Summary
Restores
provider.npm = "@ai-sdk/anthropic"on OpenCode Go Qwen models. Commit9d4b572dropped those overrides so the models inherited the provider default@ai-sdk/openai-compatible, which conflicts with the official OpenCode Go docs and breaks the Anthropic Messages endpoint that those models actually use.Changes
Restored on all five affected models:
qwen3.5-plusprovider.npm@ai-sdk/openai-compatible@ai-sdk/anthropicqwen3.6-plusprovider.npm@ai-sdk/openai-compatible@ai-sdk/anthropicqwen3.7-plusprovider.npm@ai-sdk/openai-compatible@ai-sdk/anthropicqwen3.7-maxprovider.npm@ai-sdk/openai-compatible@ai-sdk/anthropicqwen3.8-maxprovider.npm@ai-sdk/openai-compatible@ai-sdk/anthropicNo other fields were changed.
Evidence
https://opencode.ai/zen/go/v1/messagesand AI SDK package@ai-sdk/anthropic(same pattern as MiniMax on Go).providers/opencode-go/models/minimax-m{2.5,2.7,3}.tomlalready setnpm = "@ai-sdk/anthropic"; Zen Qwen entries underproviders/opencode/models/qwen3.{5,6}-plus*.tomlalso use@ai-sdk/anthropic.Validation
bun validateor live API calls (workflow constraints).Review notes
qwen3.5-plusis markeddeprecatedand is not in the current Go model list on the docs page, but it was in the same erroneous commit and is restored for consistency if the ID is still served.npmstays@ai-sdk/openai-compatible(correct default for most Go models); only per-model overrides were restored.Closes #5033
Automated by the issue fixer: https://github.com/anomalyco/models.dev/actions/runs/32230235666