mirror of
https://github.com/wu736139669/hapi.git
synced 2026-08-08 07:17:39 +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:
@@ -280,6 +280,7 @@ export function query(config: {
|
||||
continue: continueConversation,
|
||||
resume,
|
||||
model,
|
||||
effort,
|
||||
fallbackModel,
|
||||
settingsPath,
|
||||
strictMcpConfig,
|
||||
@@ -300,6 +301,7 @@ export function query(config: {
|
||||
if (appendSystemPrompt) args.push('--append-system-prompt', stripNewlinesForWindowsShellArg(appendSystemPrompt))
|
||||
if (maxTurns) args.push('--max-turns', maxTurns.toString())
|
||||
if (model) args.push('--model', model)
|
||||
if (effort) args.push('--effort', effort)
|
||||
if (canCallTool) {
|
||||
if (typeof prompt === 'string') {
|
||||
throw new Error('canCallTool callback requires --input-format stream-json. Please set prompt as an AsyncIterable.')
|
||||
|
||||
Reference in New Issue
Block a user