Skip to content

[FEATURE]:关于reasoningEffort无法生效的临时解决方案 #26495

Closed as not planned

Description

@sxfreesky123

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

在 opencode/packages/opencode/src/provider/transform.ts:L1277, 即在 providerOptions 函数 return之前加入以下代码:
const effort = options.reasoning_effort
if (effort !== undefined) {
return { [key]: { ...options, reasoningEffort: effort, reasoning_effort: effort } }
}

然后在 opencode.json中按如下配置即可:
"variants": {
"max": {
"reasoning_effort": "max"
}
急着用的可以这样临时处理一下.等后续官方的fix

Activity

  1. github-actions commented on May 9, 2026

    @github-actions
    Contributor

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

    If your issue is specifically about reasoning_effort not being honored via variants config, please follow up on #25026 or confirm if this is a distinct scenario.

  2. changed the title [-][FEATURE]:关于reasonEffort无法生效的临时解决方案[/-] [+][FEATURE]:关于reasoningEffort无法生效的临时解决方案[/+] on May 9, 2026
  3. github-actions commented on Aug 28, 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

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions