Skip to content
This repository was archived by the owner on Apr 1, 2026. It is now read-only.

Commit 3b72857

Browse files
WAY29opencode-agent[bot]rekram1-node
authored
fix: update reasoningEffort logic for gpt-5.1 models in SessionPrompt-ensureTitle (anomalyco#4456)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com> Co-authored-by: rekram1-node <rekram1-node@users.noreply.github.com>
1 parent 68cd105 commit 3b72857

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

packages/opencode/src/session/prompt.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1397,7 +1397,11 @@ export namespace SessionPrompt {
13971397
...small.info.options,
13981398
}
13991399
if (small.providerID === "openai" || small.modelID.includes("gpt-5")) {
1400-
options["reasoningEffort"] = "minimal"
1400+
if (small.modelID.includes("5.1")) {
1401+
options["reasoningEffort"] = "low"
1402+
} else {
1403+
options["reasoningEffort"] = "minimal"
1404+
}
14011405
}
14021406
if (small.providerID === "google") {
14031407
options["thinkingConfig"] = {

0 commit comments

Comments
 (0)