Skip to content

claude-opus-4.7 via GitHub Copilot fails with thinking.type.enabled not supported #23500

Closed

Description

@kiote

Bug Report

Model: github-copilot/claude-opus-4.7

Description

When using claude-opus-4.7 via the GitHub Copilot provider with a reasoning variant (high or max), the request fails with:

"thinking.type.enabled" is not supported for this model. Use "thinking.type.adaptive" and "output_config.effort" to control thinking behavior.

Root Cause

In packages/opencode/src/provider/transform.ts, the isAnthropicAdaptive check determines whether a model should use thinking.type=adaptive (new API) vs thinking.type=enabled (legacy API):

const isAnthropicAdaptive = ["opus-4-6", "opus-4.6", "sonnet-4-6", "sonnet-4.6"].some((v) =>
  model.api.id.includes(v),
)

claude-opus-4.7 is missing from this list, so it falls through to the legacy path which GitHub Copilot explicitly rejects.

Expected Behavior

claude-opus-4.7 should use thinking.type=adaptive + output_config.effort, same as claude-opus-4.6.

Activity

  1. added
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on Apr 20, 2026
  2. github-actions commented on Apr 20, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    These issues are closed; if the fix hasn't landed yet or has regressed, please note that in a comment on one of those threads or confirm this is a regression.

  3. rekram1-node commented on Apr 26, 2026

    @rekram1-node
    Collaborator

    fixed by:
    #23223

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

Metadata

Metadata

Assignees

Labels

coreAnything pertaining to core functionality of the application (opencode server stuff)

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions