mirror of
https://github.com/wu736139669/hapi.git
synced 2026-08-06 06:41:56 +00:00
feat: add codex reasoning effort option (#297)
This commit is contained in:
@@ -18,6 +18,7 @@ export const codexCommand: CommandDefinition = {
|
||||
permissionMode?: CodexPermissionMode
|
||||
resumeSessionId?: string
|
||||
model?: string
|
||||
modelReasoningEffort?: string
|
||||
} = {}
|
||||
const unknownArgs: string[] = []
|
||||
|
||||
@@ -44,6 +45,12 @@ export const codexCommand: CommandDefinition = {
|
||||
}
|
||||
options.model = model
|
||||
unknownArgs.push('--model', model)
|
||||
} else if (arg === '--model-reasoning-effort') {
|
||||
const effort = commandArgs[++i]
|
||||
if (!effort) {
|
||||
throw new Error('Missing --model-reasoning-effort value')
|
||||
}
|
||||
options.modelReasoningEffort = effort
|
||||
} else {
|
||||
unknownArgs.push(arg)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user