Merge pull request #1365 from jbrahy/fix/openai-reasoning-encrypted-content-always-include
fix: always include reasoning.encrypted_content for OpenAI reasoning models
This commit is contained in:
commit
ad01d0ada4
2 changed files with 2 additions and 2 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -1,6 +1,6 @@
|
|||
|
||||
# ── GSD project state (development-only, lives in worktree branches) ──
|
||||
|
||||
package-lock.json
|
||||
.claude/
|
||||
RELEASE-GUIDE.md
|
||||
*.tgz
|
||||
|
|
|
|||
|
|
@ -156,13 +156,13 @@ function buildParams(model: Model<"openai-responses">, context: Context, options
|
|||
}
|
||||
|
||||
if (model.reasoning) {
|
||||
params.include = ["reasoning.encrypted_content"];
|
||||
if (options?.reasoningEffort || options?.reasoningSummary) {
|
||||
const effort = clampReasoningForModel(model.name, options?.reasoningEffort || "medium") as typeof options.reasoningEffort;
|
||||
params.reasoning = {
|
||||
effort: effort || "medium",
|
||||
summary: options?.reasoningSummary || "auto",
|
||||
};
|
||||
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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue