mirror of
https://github.com/wu736139669/hapi.git
synced 2026-11-08 01:43:07 +00:00
feat: support codex collaboration_modes
This commit is contained in:
@@ -136,8 +136,14 @@ export function buildTurnStartParams(args: {
|
||||
params.sandboxPolicy = sandboxPolicy;
|
||||
}
|
||||
|
||||
const collaborationMode = args.mode?.collaborationMode;
|
||||
const model = args.overrides?.model ?? args.mode?.model;
|
||||
if (model) {
|
||||
if (collaborationMode) {
|
||||
const settings = model ? { model } : undefined;
|
||||
params.collaborationMode = settings
|
||||
? { mode: collaborationMode, settings }
|
||||
: { mode: collaborationMode };
|
||||
} else if (model) {
|
||||
params.model = model;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user