mirror of
https://github.com/wu736139669/hapi.git
synced 2026-08-05 06:24:37 +00:00
feat(claude): add effort setting parity with model across stack (#353)
Co-authored-by: Xiaoyi <xiaoyizhang@microsoft.com>
This commit is contained in:
+10
-2
@@ -327,6 +327,13 @@ export class ApiClient {
|
||||
})
|
||||
}
|
||||
|
||||
async setEffort(sessionId: string, effort: string | null): Promise<void> {
|
||||
await this.request(`/api/sessions/${encodeURIComponent(sessionId)}/effort`, {
|
||||
method: 'POST',
|
||||
body: JSON.stringify({ effort })
|
||||
})
|
||||
}
|
||||
|
||||
async approvePermission(
|
||||
sessionId: string,
|
||||
requestId: string,
|
||||
@@ -384,11 +391,12 @@ export class ApiClient {
|
||||
modelReasoningEffort?: string,
|
||||
yolo?: boolean,
|
||||
sessionType?: 'simple' | 'worktree',
|
||||
worktreeName?: string
|
||||
worktreeName?: string,
|
||||
effort?: string
|
||||
): Promise<SpawnResponse> {
|
||||
return await this.request<SpawnResponse>(`/api/machines/${encodeURIComponent(machineId)}/spawn`, {
|
||||
method: 'POST',
|
||||
body: JSON.stringify({ directory, agent, model, modelReasoningEffort, yolo, sessionType, worktreeName })
|
||||
body: JSON.stringify({ directory, agent, model, modelReasoningEffort, yolo, sessionType, worktreeName, effort })
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user