Skip to content

Trouble using Qwen3 Coder via openapi compatible provider #4597

Closed as not planned

Description

@angelo-v

Description

I have configured a provider using @ai-sdk/openai-compatible in my opencode.json. It works with serveral models, but trying to use Qwen3 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

Activity

  1. added
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Nov 21, 2025
  2. rekram1-node commented on Nov 21, 2025

    @rekram1-node
    Contributor

    is it gwen 3 or qwen3?

  3. rekram1-node commented on Nov 21, 2025

    @rekram1-node
    Contributor

    Can you show me your opencode.json

  4. self-assigned this
    on Nov 21, 2025
  5. removed
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Nov 21, 2025
  6. changed the title [-]Trouble using Gwen3 Coder via openapi compatible provider[/-] [+]Trouble using Qwen3 Coder via openapi compatible provider[/+] on Feb 25, 2026
  7. angelo-v commented on Feb 25, 2026

    @angelo-v
    Author

    sorry, it is Qwen of course. I cannot share my whole config, but if you tell me what you need to know from it, I will let you know

  8. github-actions commented on Apr 27, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions