Skip to content

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

@sxfreesky123

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions