Trouble using Gwen3 Coder via openapi compatible provider #3031

Open
opened 2026-02-16 17:38:19 -05:00 by yindo · 2 comments
Owner

Originally created by @angelo-v on GitHub (Nov 21, 2025).

Originally assigned to: @rekram1-node on GitHub.

Description

I have configured a provider using @ai-sdk/openai-compatible in my opencode.json. It works with serveral models, but trying to use Gwen3 Coder fails with the following error:

openrouter error: feature 'extra arguments: {"usage":{"include":true}}' is not currently supported

Is there anything I need to adjust in my config for this model, or is it a bug in OpenCode?

OpenCode version

v1.0.85

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Originally created by @angelo-v on GitHub (Nov 21, 2025). Originally assigned to: @rekram1-node on GitHub. ### Description I have configured a provider using `@ai-sdk/openai-compatible` in my opencode.json. It works with serveral models, but trying to use Gwen3 Coder fails with the following error: ``` openrouter error: feature 'extra arguments: {"usage":{"include":true}}' is not currently supported ``` Is there anything I need to adjust in my config for this model, or is it a bug in OpenCode? ### OpenCode version v1.0.85 ### Steps to reproduce _No response_ ### Screenshot and/or share link _No response_ ### Operating System _No response_ ### Terminal _No response_
yindo added the bug label 2026-02-16 17:38:19 -05:00
Author
Owner

@rekram1-node commented on GitHub (Nov 21, 2025):

is it gwen 3 or qwen3?

@rekram1-node commented on GitHub (Nov 21, 2025): is it gwen 3 or qwen3?
Author
Owner

@rekram1-node commented on GitHub (Nov 21, 2025):

Can you show me your opencode.json

@rekram1-node commented on GitHub (Nov 21, 2025): Can you show me your opencode.json
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#3031