Fix GPT-5 no-reasoning mode. Somewhat. There's no real off-switch ...

This commit is contained in:
Mario Zechner 2025-09-19 01:45:00 +02:00
parent 0f7ed33ba5
commit f55985f633
2 changed files with 75 additions and 63 deletions

View file

@ -337,11 +337,6 @@ function buildParams(model: Model<"openai-responses">, context: Context, options
};
params.include = ["reasoning.encrypted_content"];
} else {
params.reasoning = {
effort: model.name.startsWith("gpt-5") ? "minimal" : null,
summary: null,
};
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({