mirror of
https://github.com/wu736139669/hapi.git
synced 2026-08-05 06:24:37 +00:00
fix(codex): apply reasoning effort correctly
This commit is contained in:
@@ -168,9 +168,10 @@ export function buildTurnStartParams(args: {
|
||||
? undefined
|
||||
: args.mode?.collaborationMode;
|
||||
const model = args.overrides?.model ?? args.mode?.model;
|
||||
const modelReasoningEffort = args.mode?.modelReasoningEffort;
|
||||
|
||||
if (args.mode?.modelReasoningEffort) {
|
||||
params.effort = args.mode.modelReasoningEffort;
|
||||
if (modelReasoningEffort) {
|
||||
params.effort = modelReasoningEffort;
|
||||
if (!collaborationMode && supportsReasoningSummary(model)) {
|
||||
params.summary = 'detailed';
|
||||
}
|
||||
@@ -185,6 +186,7 @@ export function buildTurnStartParams(args: {
|
||||
mode: collaborationMode,
|
||||
settings: {
|
||||
model,
|
||||
reasoning_effort: modelReasoningEffort ?? null,
|
||||
developer_instructions: appendCollaborationInstructions(developerInstructions)
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user