Skip to content

fix: OpenCode Go Qwen models conflict with documented Anthropic endpoints - #5034

Open
github-actions[bot] wants to merge 1 commit into
devfrom
issue-5033
Open

fix: OpenCode Go Qwen models conflict with documented Anthropic endpoints#5034
github-actions[bot] wants to merge 1 commit into
devfrom
issue-5033

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Summary

Restores provider.npm = "@ai-sdk/anthropic" on OpenCode Go Qwen models. Commit 9d4b572 dropped 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:

Model Field Old New
qwen3.5-plus provider.npm (inherited) @ai-sdk/openai-compatible @ai-sdk/anthropic
qwen3.6-plus provider.npm (inherited) @ai-sdk/openai-compatible @ai-sdk/anthropic
qwen3.7-plus provider.npm (inherited) @ai-sdk/openai-compatible @ai-sdk/anthropic
qwen3.7-max provider.npm (inherited) @ai-sdk/openai-compatible @ai-sdk/anthropic
qwen3.8-max provider.npm (inherited) @ai-sdk/openai-compatible @ai-sdk/anthropic

No other fields were changed.

Evidence

  • OpenCode Go endpoints — Endpoints table lists Qwen3.5/3.6/3.7/3.8 models with endpoint https://opencode.ai/zen/go/v1/messages and AI SDK package @ai-sdk/anthropic (same pattern as MiniMax on Go).
  • Peer consistency in-repo: providers/opencode-go/models/minimax-m{2.5,2.7,3}.toml already set npm = "@ai-sdk/anthropic"; Zen Qwen entries under providers/opencode/models/qwen3.{5,6}-plus*.toml also use @ai-sdk/anthropic.
  • Issue OpenCode Go Qwen models conflict with documented Anthropic endpoints #5033 reports Anthropic works in practice and OpenAI-completions do not, matching the docs.

Validation

  • Compared catalog state against https://opencode.ai/docs/go Endpoints table for all five Qwen model IDs.
  • Confirmed MiniMax Go peers and Zen Qwen entries already use the Anthropic package override.
  • Did not run bun validate or live API calls (workflow constraints).

Review notes

  • qwen3.5-plus is marked deprecated and 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.
  • Provider-level npm stays @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

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.

OpenCode Go Qwen models conflict with documented Anthropic endpoints

0 participants