Skip to content

Commit 614dc44

Browse files
committed
fix(gpt5): default enableGpt5ReasoningSummary=true to preserve tests and expected behavior
1 parent abc115d commit 614dc44

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/api/providers/openai-native.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ export class OpenAiNativeHandler extends BaseProvider implements SingleCompletio
5252
constructor(options: ApiHandlerOptions) {
5353
super()
5454
this.options = options
55+
// Default to including reasoning.summary: "auto" for GPT‑5 unless explicitly disabled
56+
if (this.options.enableGpt5ReasoningSummary === undefined) {
57+
this.options.enableGpt5ReasoningSummary = true
58+
}
5559
const apiKey = this.options.openAiNativeApiKey ?? "not-provided"
5660
this.client = new OpenAI({ baseURL: this.options.openAiNativeBaseUrl, apiKey })
5761
}

0 commit comments

Comments
 (0)