mirror of
https://github.com/wu736139669/hapi.git
synced 2026-08-05 06:24:37 +00:00
feat: add codex reasoning effort option (#297)
This commit is contained in:
@@ -381,13 +381,14 @@ export class ApiClient {
|
||||
directory: string,
|
||||
agent?: 'claude' | 'codex' | 'cursor' | 'gemini' | 'opencode',
|
||||
model?: string,
|
||||
modelReasoningEffort?: string,
|
||||
yolo?: boolean,
|
||||
sessionType?: 'simple' | 'worktree',
|
||||
worktreeName?: string
|
||||
): Promise<SpawnResponse> {
|
||||
return await this.request<SpawnResponse>(`/api/machines/${encodeURIComponent(machineId)}/spawn`, {
|
||||
method: 'POST',
|
||||
body: JSON.stringify({ directory, agent, model, yolo, sessionType, worktreeName })
|
||||
body: JSON.stringify({ directory, agent, model, modelReasoningEffort, yolo, sessionType, worktreeName })
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user