fix(ai): handle explicit thinking off across providers closes #2490

This commit is contained in:
Mario Zechner
2026-03-22 20:27:44 +01:00
parent 6129971c04
commit d1613e3f53
8 changed files with 246 additions and 28 deletions

View File

@@ -221,18 +221,7 @@ function buildParams(model: Model<"openai-responses">, context: Context, options
};
params.include = ["reasoning.encrypted_content"];
} else {
if (model.name.startsWith("gpt-5")) {
// Jesus Christ, see https://community.openai.com/t/need-reasoning-false-option-for-gpt-5/1351588/7
messages.push({
role: "developer",
content: [
{
type: "input_text",
text: "# Juice: 0 !important",
},
],
});
}
params.reasoning = { effort: "none" };
}
}