mirror of
https://github.com/wu736139669/hapi.git
synced 2026-11-18 03:27:08 +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:
+6
-2
@@ -19,6 +19,7 @@ export class ApiClient {
|
||||
metadata: Metadata
|
||||
state: AgentState | null
|
||||
model?: string
|
||||
effort?: string
|
||||
}): Promise<Session> {
|
||||
const response = await axios.post<CreateSessionResponse>(
|
||||
`${configuration.apiUrl}/cli/sessions`,
|
||||
@@ -26,7 +27,8 @@ export class ApiClient {
|
||||
tag: opts.tag,
|
||||
metadata: opts.metadata,
|
||||
agentState: opts.state,
|
||||
model: opts.model
|
||||
model: opts.model,
|
||||
effort: opts.effort
|
||||
},
|
||||
{
|
||||
headers: {
|
||||
@@ -72,7 +74,9 @@ export class ApiClient {
|
||||
thinkingAt: raw.thinkingAt,
|
||||
todos: raw.todos,
|
||||
model: raw.model,
|
||||
permissionMode: raw.permissionMode
|
||||
effort: raw.effort,
|
||||
permissionMode: raw.permissionMode,
|
||||
collaborationMode: raw.collaborationMode
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user