fix: update reasoningEffort logic for gpt-5.1 models in SessionPrompt-ensureTitle (#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>
pull/4471/head
Longlone 2025-11-19 04:22:44 +08:00 committed by GitHub
parent 68cd105d9d
commit 3b72857124
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 1 deletions

View File

@ -1397,7 +1397,11 @@ export namespace SessionPrompt {
...small.info.options,
}
if (small.providerID === "openai" || small.modelID.includes("gpt-5")) {
options["reasoningEffort"] = "minimal"
if (small.modelID.includes("5.1")) {
options["reasoningEffort"] = "low"
} else {
options["reasoningEffort"] = "minimal"
}
}
if (small.providerID === "google") {
options["thinkingConfig"] = {